aboutsummaryrefslogtreecommitdiff
path: root/ports/irrlicht/fix-sysctl.patch
diff options
context:
space:
mode:
authorJonas Karlsson <jonaskarlsson@fripost.org>2020-08-25 23:47:28 +0200
committerGitHub <noreply@github.com>2020-08-25 14:47:28 -0700
commit58fc7e5c010ebedae8f5cb8f335b1fd5c5d5a5b5 (patch)
tree0a82b03011dc5fc40d013ac0a6081cb00f41391b /ports/irrlicht/fix-sysctl.patch
parent05635bdf788413e0c5f49ea259984b60951890cf (diff)
downloadvcpkg-58fc7e5c010ebedae8f5cb8f335b1fd5c5d5a5b5.tar.gz
vcpkg-58fc7e5c010ebedae8f5cb8f335b1fd5c5d5a5b5.zip
[irrlicht] Patch moved sysctl.h header file (#13137)
Sysctl has been deprecated for a while and in newer versions of glibc it is removed which leads to a compilation error on modern Linux. This is fixed in SVN trunk of irrlich so I copied the include guards from there. In this case sysctl headers are only loaded for OS X where they are also actually used.
Diffstat (limited to 'ports/irrlicht/fix-sysctl.patch')
-rw-r--r--ports/irrlicht/fix-sysctl.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/ports/irrlicht/fix-sysctl.patch b/ports/irrlicht/fix-sysctl.patch
new file mode 100644
index 000000000..98c70273e
--- /dev/null
+++ b/ports/irrlicht/fix-sysctl.patch
@@ -0,0 +1,12 @@
+--- a/source/Irrlicht/COSOperator.cpp
++++ b/source/Irrlicht/COSOperator.cpp
+@@ -11,8 +11,8 @@
+ #else
+ #include <string.h>
+ #include <unistd.h>
+-#ifndef _IRR_SOLARIS_PLATFORM_
+ #include <sys/types.h>
++#ifdef _IRR_OSX_PLATFORM_
+ #include <sys/sysctl.h>
+ #endif
+ #endif