aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-03-19 14:54:35 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-03-19 14:54:35 -0700
commit4adaaafc9e0909107bb931d28fc2c48ce0a4de05 (patch)
treef73c52be6e9077d79d916006c4c5c178f8e87326 /nptl
parentca7b8af5dbd23ecb9549228075327ae6d547d206 (diff)
downloadglibc-4adaaafc9e0909107bb931d28fc2c48ce0a4de05.zip
glibc-4adaaafc9e0909107bb931d28fc2c48ce0a4de05.tar.gz
glibc-4adaaafc9e0909107bb931d28fc2c48ce0a4de05.tar.bz2
Use __NR_futex to define SYS_futex
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 2e81dfc..ad4725f 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,5 +1,10 @@
2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
+ * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (SYS_futex): Use
+ __NR_futex directly.
+
+2012-03-19 H.J. Lu <hongjiu.lu@intel.com>
+
* unwind.c (unwind_stop): Cast _Unwind_GetCFA return to
_Unwind_Ptr first.
diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
index ab7ca6a..dada21c 100644
--- a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
+++ b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
@@ -43,7 +43,7 @@
# endif
#endif
-#define SYS_futex 202
+#define SYS_futex __NR_futex
#define FUTEX_WAIT 0
#define FUTEX_WAKE 1
#define FUTEX_CMP_REQUEUE 4