hppa: allocate membarrier system call number
[urcu.git] / urcu / arch / hppa.h
index f92b0ab594b43cf801aab944a1b47bf6df82c0b5..c8d4d057708e1d5fe603697b12200ca54d0d5682 100644 (file)
@@ -32,6 +32,14 @@ extern "C" {
 #include <stdlib.h>
 #include <sys/time.h>
 
+/*
+ * On Linux, define the membarrier system call number if not yet available in
+ * the system headers.
+ */
+#if (defined(__linux__) && !defined(__NR_membarrier))
+#define __NR_membarrier                343
+#endif
+
 #define HAS_CAA_GET_CYCLES
 typedef unsigned long caa_cycles_t;
 
This page took 0.024933 seconds and 4 git commands to generate.