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 cfb3479b4fbd2c2018e0567d3dc02ea72050651c..08425e98ee29397fa735a3c4fa2071ae3ff12c51 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 ae32b80569cdf01386c98d023baaa76ea2d137b9..7961d32c009114b2e468d9eec64aeb4727cc8828 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