summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--x11/libxshmfence/Makefile3
-rw-r--r--x11/libxshmfence/files/patch-src__xshmfence_futex.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/x11/libxshmfence/Makefile b/x11/libxshmfence/Makefile
index 9a208a1..84bfdd3 100644
--- a/x11/libxshmfence/Makefile
+++ b/x11/libxshmfence/Makefile
@@ -12,4 +12,7 @@ LICENSE= MIT
USE_XORG= xproto
XORG_CAT= lib
+test: build
+ @cd ${WRKSRC} && ${MAKE} check
+
.include <bsd.port.mk>
diff --git a/x11/libxshmfence/files/patch-src__xshmfence_futex.h b/x11/libxshmfence/files/patch-src__xshmfence_futex.h
index 5a859a9..58c42a9 100644
--- a/x11/libxshmfence/files/patch-src__xshmfence_futex.h
+++ b/x11/libxshmfence/files/patch-src__xshmfence_futex.h
@@ -17,9 +17,9 @@
+#include <sys/types.h>
+#include <sys/umtx.h>
+
-+static inline int sys_futex(void *addr, int op, int val)
++static inline int sys_futex(void *addr, int op, int32_t val)
+{
-+ return _umtx_op(addr, op, val, NULL, NULL) == -1 ? errno : 0;
++ return _umtx_op(addr, op, (uint32_t)val, NULL, NULL) == -1 ? errno : 0;
+}
+
+static inline int futex_wake(int32_t *addr) {