aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgomp/config/linux/mips/futex.h
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-05-14 17:46:52 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-05-14 17:47:56 +0800
commit18927802fc8b991c35d7703427a53807e3c6d8c7 (patch)
tree39f882d1b632f47604c264b684fc7dcd4c91f37d /gcc-4.9/libgomp/config/linux/mips/futex.h
parent5cd97bdbf2d97af4b0e4301f5f2b6c2a4301baf9 (diff)
downloadtoolchain_gcc-18927802fc8b991c35d7703427a53807e3c6d8c7.tar.gz
toolchain_gcc-18927802fc8b991c35d7703427a53807e3c6d8c7.tar.bz2
toolchain_gcc-18927802fc8b991c35d7703427a53807e3c6d8c7.zip
[4.9] Fix openmp support
See the following CLs for 4.8 c27bd5a265e6aeecefa6bfebe52fcf26b08298cd # Support OpenMP b6c94ff8e836a01ad3598135d19c49c9eb01a173 # needed OpenMP: Better CPU count detection for Linux d88e126b2b303c95d94b939c21f8672637871dbd # Fix openmp support to use libgomp/config/linux Change-Id: Ib85a23669c03bcdc9dd5f83b9a0f18e5cad6033d
Diffstat (limited to 'gcc-4.9/libgomp/config/linux/mips/futex.h')
-rw-r--r--gcc-4.9/libgomp/config/linux/mips/futex.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc-4.9/libgomp/config/linux/mips/futex.h b/gcc-4.9/libgomp/config/linux/mips/futex.h
index ae32b8056..641308cab 100644
--- a/gcc-4.9/libgomp/config/linux/mips/futex.h
+++ b/gcc-4.9/libgomp/config/linux/mips/futex.h
@@ -25,6 +25,11 @@
/* 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