aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgcc-4.4.3/libstdc++-v3/configure12
-rw-r--r--gcc-4.4.3/libstdc++-v3/libsupc++/guard.cc5
-rwxr-xr-xgcc-4.6/libstdc++-v3/configure12
-rw-r--r--gcc-4.6/libstdc++-v3/libsupc++/guard.cc5
-rwxr-xr-xgcc-4.7/libstdc++-v3/configure12
-rw-r--r--gcc-4.7/libstdc++-v3/libsupc++/guard.cc5
6 files changed, 51 insertions, 0 deletions
diff --git a/gcc-4.4.3/libstdc++-v3/configure b/gcc-4.4.3/libstdc++-v3/configure
index 6922a6c..31f1083 100755
--- a/gcc-4.4.3/libstdc++-v3/configure
+++ b/gcc-4.4.3/libstdc++-v3/configure
@@ -113618,6 +113618,12 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
+#if !defined(SYS_gettid)
+#define SYS_gettid __NR_gettid
+#endif
+#if !defined(SYS_futex)
+#define SYS_futex __NR_futex
+#endif
int
main ()
{
@@ -113737,6 +113743,12 @@ cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
+#if !defined(SYS_gettid)
+#define SYS_gettid __NR_gettid
+#endif
+#if !defined(SYS_futex)
+#define SYS_futex __NR_futex
+#endif
int
main ()
{
diff --git a/gcc-4.4.3/libstdc++-v3/libsupc++/guard.cc b/gcc-4.4.3/libstdc++-v3/libsupc++/guard.cc
index 10f9092..37b0ffd 100644
--- a/gcc-4.4.3/libstdc++-v3/libsupc++/guard.cc
+++ b/gcc-4.4.3/libstdc++-v3/libsupc++/guard.cc
@@ -33,7 +33,12 @@
#if defined(__GTHREADS) && defined(__GTHREAD_HAS_COND) \
&& defined(_GLIBCXX_ATOMIC_BUILTINS_4) && defined(_GLIBCXX_HAVE_LINUX_FUTEX)
# include <climits>
+#if defined(__ANDROID__)
+# include <sys/syscall.h>
+# define SYS_futex __NR_futex
+#else
# include <syscall.h>
+#endif
# define _GLIBCXX_USE_FUTEX
# define _GLIBCXX_FUTEX_WAIT 0
# define _GLIBCXX_FUTEX_WAKE 1
diff --git a/gcc-4.6/libstdc++-v3/configure b/gcc-4.6/libstdc++-v3/configure
index 9aedd4f..73dcdb5 100755
--- a/gcc-4.6/libstdc++-v3/configure
+++ b/gcc-4.6/libstdc++-v3/configure
@@ -63546,6 +63546,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
+#if !defined(SYS_gettid)
+#define SYS_gettid __NR_gettid
+#endif
+#if !defined(SYS_futex)
+#define SYS_futex __NR_futex
+#endif
int
main ()
{
@@ -63604,6 +63610,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
+#if !defined(SYS_gettid)
+#define SYS_gettid __NR_gettid
+#endif
+#if !defined(SYS_futex)
+#define SYS_futex __NR_futex
+#endif
int
main ()
{
diff --git a/gcc-4.6/libstdc++-v3/libsupc++/guard.cc b/gcc-4.6/libstdc++-v3/libsupc++/guard.cc
index 6e3d415..4d9eba7 100644
--- a/gcc-4.6/libstdc++-v3/libsupc++/guard.cc
+++ b/gcc-4.6/libstdc++-v3/libsupc++/guard.cc
@@ -34,7 +34,12 @@
#if defined(__GTHREADS) && defined(__GTHREAD_HAS_COND) \
&& defined(_GLIBCXX_ATOMIC_BUILTINS_4) && defined(_GLIBCXX_HAVE_LINUX_FUTEX)
# include <climits>
+#if defined(__ANDROID__)
+# include <sys/syscall.h>
+# define SYS_futex __NR_futex
+#else
# include <syscall.h>
+#endif
# define _GLIBCXX_USE_FUTEX
# define _GLIBCXX_FUTEX_WAIT 0
# define _GLIBCXX_FUTEX_WAKE 1
diff --git a/gcc-4.7/libstdc++-v3/configure b/gcc-4.7/libstdc++-v3/configure
index aea3acc..c7c6777 100755
--- a/gcc-4.7/libstdc++-v3/configure
+++ b/gcc-4.7/libstdc++-v3/configure
@@ -64228,6 +64228,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
+#if !defined(SYS_gettid)
+#define SYS_gettid __NR_gettid
+#endif
+#if !defined(SYS_futex)
+#define SYS_futex __NR_futex
+#endif
int
main ()
{
@@ -64286,6 +64292,12 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
+#if !defined(SYS_gettid)
+#define SYS_gettid __NR_gettid
+#endif
+#if !defined(SYS_futex)
+#define SYS_futex __NR_futex
+#endif
int
main ()
{
diff --git a/gcc-4.7/libstdc++-v3/libsupc++/guard.cc b/gcc-4.7/libstdc++-v3/libsupc++/guard.cc
index f8550c0..53609c5 100644
--- a/gcc-4.7/libstdc++-v3/libsupc++/guard.cc
+++ b/gcc-4.7/libstdc++-v3/libsupc++/guard.cc
@@ -34,7 +34,12 @@
#if defined(__GTHREADS) && defined(__GTHREAD_HAS_COND) \
&& (ATOMIC_INT_LOCK_FREE > 1) && defined(_GLIBCXX_HAVE_LINUX_FUTEX)
# include <climits>
+#if defined(__ANDROID__)
+# include <sys/syscall.h>
+# define SYS_futex __NR_futex
+#else
# include <syscall.h>
+#endif
# include <unistd.h>
# define _GLIBCXX_USE_FUTEX
# define _GLIBCXX_FUTEX_WAIT 0