mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 16:09:02 +08:00
58fc7e5c01
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.
13 lines
276 B
Diff
13 lines
276 B
Diff
--- 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
|