mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-30 13:51:31 +01:00
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
diff --git a/src/OpenThreads/pthreads/PThread.cpp b/src/OpenThreads/pthreads/PThread.cpp
|
|
index 7cac330..035dc1f 100644
|
|
--- a/src/OpenThreads/pthreads/PThread.cpp
|
|
+++ b/src/OpenThreads/pthreads/PThread.cpp
|
|
@@ -26,7 +26,7 @@
|
|
#endif
|
|
#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>
|
|
diff --git a/src/osgDB/FileUtils.cpp b/src/osgDB/FileUtils.cpp
|
|
index c0c8cec..0cd4c2f 100644
|
|
--- a/src/osgDB/FileUtils.cpp
|
|
+++ b/src/osgDB/FileUtils.cpp
|
|
@@ -95,7 +95,7 @@ typedef char TCHAR;
|
|
#endif
|
|
#endif
|
|
|
|
-#if defined(__ANDROID__)
|
|
+#if defined(__ANDROID__) || !defined(__GLIBC__)
|
|
#define stat64 stat
|
|
#endif
|
|
|
|
diff --git a/src/osgPlugins/osc/osc/OscHostEndianness.h b/src/osgPlugins/osc/osc/OscHostEndianness.h
|
|
index fe135f4..25a5597 100644
|
|
--- 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__
|