aboutsummaryrefslogtreecommitdiffstats
path: root/community/openscenegraph/musl-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/openscenegraph/musl-fixes.patch')
-rw-r--r--community/openscenegraph/musl-fixes.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/openscenegraph/musl-fixes.patch b/community/openscenegraph/musl-fixes.patch
new file mode 100644
index 0000000000..234c507e35
--- /dev/null
+++ b/community/openscenegraph/musl-fixes.patch
@@ -0,0 +1,22 @@
+--- a/src/OpenThreads/pthreads/PThread.cpp
++++ b/src/OpenThreads/pthreads/PThread.cpp
+@@ -23,7 +23,7 @@
+ #include <pthread.h>
+ #include <limits.h>
+
+-#if defined __linux__ || defined __sun || defined __APPLE__ || ANDROID
++#if defined __GLIBC__ || defined __sun || defined __APPLE__ || ANDROID
+ #include <string.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
+--- a/src/osgPlugins/osc/osc/OscHostEndianness.h
++++ b/src/osgPlugins/osc/osc/OscHostEndianness.h
+@@ -51,7 +51,7 @@
+
+ #else
+
+- #if defined(__GLIBC__) || defined(__ANDROID__) || defined(__CYGWIN__)
++ #if defined(__linux__) || defined(__ANDROID__) || defined(__CYGWIN__)
+ #include <endian.h>
+ #if (__BYTE_ORDER == __LITTLE_ENDIAN)
+ #ifndef __LITTLE_ENDIAN__