32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
--- a/glib/gthreadprivate.h
|
|
+++ b/glib/gthreadprivate.h
|
|
@@ -46,6 +46,10 @@
|
|
#include <sys/syscall.h>
|
|
#include <unistd.h>
|
|
|
|
+#ifndef __LP64__
|
|
+#include <errno.h>
|
|
+#endif
|
|
+
|
|
#ifndef FUTEX_WAIT_PRIVATE
|
|
#define FUTEX_WAIT_PRIVATE FUTEX_WAIT
|
|
#define FUTEX_WAKE_PRIVATE FUTEX_WAKE
|
|
@@ -67,7 +71,7 @@
|
|
* This must not be called with a timeout parameter as that differs
|
|
* in size between the two syscall variants!
|
|
*/
|
|
-#if defined(__NR_futex) && defined(__NR_futex_time64)
|
|
+#if defined(__NR_futex) && defined(__NR_futex_time64) && !defined(__ANDROID__)
|
|
#define g_futex_simple(uaddr, futex_op, ...) \
|
|
G_STMT_START \
|
|
{ \
|
|
@@ -84,7 +88,7 @@
|
|
} \
|
|
} \
|
|
G_STMT_END
|
|
-#elif defined(__NR_futex_time64)
|
|
+#elif defined(__NR_futex_time64) && !defined(__ANDROID__)
|
|
#define g_futex_simple(uaddr, futex_op, ...) \
|
|
G_STMT_START \
|
|
{ \
|