mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-19 21:59:17 +02:00
glib/gthread-posix: Use __ANDROID__ to test for the OS, not __BIONIC__
See https://android.googlesource.com/platform/bionic/+/HEAD/docs/defines.md
This commit is contained in:
parent
e0fca3e7a7
commit
fe8348efb4
@ -1625,7 +1625,7 @@ g_cond_wait_until (GCond *cond,
|
|||||||
g_mutex_unlock (mutex);
|
g_mutex_unlock (mutex);
|
||||||
|
|
||||||
#if defined(HAVE_FUTEX_TIME64)
|
#if defined(HAVE_FUTEX_TIME64)
|
||||||
#if defined(__BIONIC__)
|
#if defined(__ANDROID__)
|
||||||
if (__builtin_available (android 30, *)) {
|
if (__builtin_available (android 30, *)) {
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
|
@ -74,7 +74,7 @@ struct _GRealThread
|
|||||||
* in size between the two syscall variants!
|
* in size between the two syscall variants!
|
||||||
*/
|
*/
|
||||||
#if defined(HAVE_FUTEX) && defined(HAVE_FUTEX_TIME64)
|
#if defined(HAVE_FUTEX) && defined(HAVE_FUTEX_TIME64)
|
||||||
#if defined(__BIONIC__)
|
#if defined(__ANDROID__)
|
||||||
#define g_futex_simple(uaddr, futex_op, ...) \
|
#define g_futex_simple(uaddr, futex_op, ...) \
|
||||||
G_STMT_START \
|
G_STMT_START \
|
||||||
{ \
|
{ \
|
||||||
@ -115,7 +115,7 @@ struct _GRealThread
|
|||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
G_STMT_END
|
G_STMT_END
|
||||||
#endif /* defined(__BIONIC__) */
|
#endif /* defined(__ANDROID__) */
|
||||||
#elif defined(HAVE_FUTEX_TIME64)
|
#elif defined(HAVE_FUTEX_TIME64)
|
||||||
#define g_futex_simple(uaddr, futex_op, ...) \
|
#define g_futex_simple(uaddr, futex_op, ...) \
|
||||||
G_STMT_START \
|
G_STMT_START \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user