32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
--- a/glib/gthreadprivate.h
|
|
+++ b/glib/gthreadprivate.h
|
|
@@ -45,6 +45,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
|
|
@@ -60,7 +60,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 \
|
|
{ \
|
|
@@ -69,7 +69,7 @@
|
|
syscall (__NR_futex, uaddr, (gsize) futex_op, __VA_ARGS__); \
|
|
} \
|
|
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 \
|
|
{ \
|