futex.h (SYS_futex): Define if not already done.
authorSteve Ellcey <sellcey@imgtec.com>
Fri, 21 Nov 2014 23:25:51 +0000 (23:25 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Fri, 21 Nov 2014 23:25:51 +0000 (23:25 +0000)
2014-11-21  Steve Ellcey  <sellcey@imgtec.com>

* config/linux/mips/futex.h (SYS_futex): Define if not already done.

From-SVN: r217952

libgomp/ChangeLog
libgomp/config/linux/mips/futex.h

index cfb3479..08425e9 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
+
+       * config/linux/mips/futex.h (SYS_futex): Define if not already done.
+
 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR bootstrap/63784
index ae32b80..7961d32 100644 (file)
 /* Provide target-specific access to the futex system call.  */
 
 #include <sys/syscall.h>
+
+#if !defined (SYS_futex)
+#define SYS_futex __NR_futex
+#endif
+
 #define FUTEX_WAIT 0
 #define FUTEX_WAKE 1