#include <sys/time.h>
/*
- * Define the membarrier system call number if not yet available in the
- * system headers. aarch64 implements asm-generic/unistd.h system call
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers. aarch64 implements asm-generic/unistd.h system call
* numbers.
*/
-#ifndef __NR_membarrier
+#if (defined(__linux__) && !defined(__NR_membarrier))
#define __NR_membarrier 283
#endif
#include <sys/time.h>
/*
- * Define the membarrier system call number if not yet available in the
- * system headers.
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers.
*/
-#ifndef __NR_membarrier
+#if (defined(__linux__) && !defined(__NR_membarrier))
#define __NR_membarrier 389
#endif
#include <sys/time.h>
/*
- * Define the membarrier system call number if not yet available in the
- * system headers.
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers.
*/
-#ifndef __NR_membarrier
+#if (defined(__linux__) && !defined(__NR_membarrier))
#define __NR_membarrier 1344
#endif
#endif
/*
- * Define the membarrier system call number if not yet available in the
- * system headers.
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers.
*/
-#ifndef __NR_membarrier
+#if (defined(__linux__) && !defined(__NR_membarrier))
#define __NR_membarrier 365
#endif
}
/*
- * Define the membarrier system call number if not yet available in the
- * system headers.
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers.
*/
-#ifndef __NR_membarrier
+#if (defined(__linux__) && !defined(__NR_membarrier))
#define __NR_membarrier 356
#endif
#include <sys/time.h>
/*
- * Define the membarrier system call number if not yet available in the
- * system headers. tile implements asm-generic/unistd.h system call
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers. tile implements asm-generic/unistd.h system call
* numbers.
*/
-#ifndef __NR_membarrier
+#if (defined(__linux__) && !defined(__NR_membarrier))
#define __NR_membarrier 283
#endif
}
/*
- * Define the membarrier system call number if not yet available in the
- * system headers.
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers.
*/
+#if (defined(__linux__) && !defined(__NR_membarrier))
#if (CAA_BITS_PER_LONG == 32)
-#ifndef __NR_membarrier
#define __NR_membarrier 375
-#endif
#else
-#ifndef __NR_membarrier
#define __NR_membarrier 324
#endif
#endif