xref: /OK3568_Linux_fs/buildroot/package/irrlicht/0002-remove-sys-sysctl.h.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom 5382142d37730f6758753b758c91e257ffd5892c Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: Romain Naour <romain.naour@gmail.com>
3*4882a593SmuzhiyunDate: Sun, 9 Apr 2017 22:20:19 +0200
4*4882a593SmuzhiyunSubject: [PATCH] remove sys/sysctl.h
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunWith musl irrlicht doesn't build due to missing sys/sysctl.h
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunfatal error: sys/sysctl.h: No such file or directory
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunFrom [1]
11*4882a593Smuzhiyun"sysctl does not work, and NEVER worked. using it is bogus.
12*4882a593Smuzhiyunit was a bogus experimental syscall that was deprecated before
13*4882a593Smuzhiyunit was ever used (basically, a broken binary version of
14*4882a593Smuzhiyun/proc/sys, without any stability between kernel versions for
15*4882a593Smuzhiyunwhat the binary constants meant)."
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun[1] https://devsonacid.wordpress.com/tag/musl/
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunSigned-off-by: Romain Naour <romain.naour@gmail.com>
20*4882a593Smuzhiyun---
21*4882a593Smuzhiyun source/Irrlicht/COSOperator.cpp | 1 -
22*4882a593Smuzhiyun 1 file changed, 1 deletion(-)
23*4882a593Smuzhiyun
24*4882a593Smuzhiyundiff --git a/source/Irrlicht/COSOperator.cpp b/source/Irrlicht/COSOperator.cpp
25*4882a593Smuzhiyunindex 0899d1d..ccf5ef5 100644
26*4882a593Smuzhiyun--- a/source/Irrlicht/COSOperator.cpp
27*4882a593Smuzhiyun+++ b/source/Irrlicht/COSOperator.cpp
28*4882a593Smuzhiyun@@ -13,7 +13,6 @@
29*4882a593Smuzhiyun #include <unistd.h>
30*4882a593Smuzhiyun #ifndef _IRR_SOLARIS_PLATFORM_
31*4882a593Smuzhiyun #include <sys/types.h>
32*4882a593Smuzhiyun-#include <sys/sysctl.h>
33*4882a593Smuzhiyun #endif
34*4882a593Smuzhiyun #endif
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun--
37*4882a593Smuzhiyun2.9.3
38*4882a593Smuzhiyun
39