initial import
This commit is contained in:
27
libxshmfence/remove-forced-openbsd-futex-support.patch
Normal file
27
libxshmfence/remove-forced-openbsd-futex-support.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff --git a/src/xshmfence_futex.h b/src/xshmfence_futex.h
|
||||
index 8a6dae0..673ac0e 100644
|
||||
--- a/src/xshmfence_futex.h
|
||||
+++ b/src/xshmfence_futex.h
|
||||
@@ -26,21 +26,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
-#ifdef HAVE_FUTEX
|
||||
-
|
||||
-#include <sys/time.h>
|
||||
-#include <sys/futex.h>
|
||||
-#include <limits.h>
|
||||
-
|
||||
-static inline int futex_wake(int32_t *addr) {
|
||||
- return futex(addr, FUTEX_WAKE, INT_MAX, NULL, NULL);
|
||||
-}
|
||||
-
|
||||
-static inline int futex_wait(int32_t *addr, int32_t value) {
|
||||
- return futex(addr, FUTEX_WAIT, value, NULL, NULL);
|
||||
-}
|
||||
-
|
||||
-#elif HAVE_UMTX
|
||||
+#ifdef HAVE_UMTX
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/umtx.h>
|
||||
Reference in New Issue
Block a user