diff options
author | jkim <jkim@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2013-12-10 07:45:48 +0800 |
---|---|---|
committer | jkim <jkim@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2013-12-10 07:45:48 +0800 |
commit | 95214d82dced290752a4e317779599d632766c16 (patch) | |
tree | 57fe7044a138ec5f1693755b0605195fd9c3d988 | |
parent | dfcd515ebd4a0fc5f86ddb5fedc665226ac4c3e2 (diff) | |
download | xorg-devel-ports-95214d82dced290752a4e317779599d632766c16.tar xorg-devel-ports-95214d82dced290752a4e317779599d632766c16.tar.gz xorg-devel-ports-95214d82dced290752a4e317779599d632766c16.tar.bz2 xorg-devel-ports-95214d82dced290752a4e317779599d632766c16.tar.lz xorg-devel-ports-95214d82dced290752a4e317779599d632766c16.tar.xz xorg-devel-ports-95214d82dced290752a4e317779599d632766c16.tar.zst xorg-devel-ports-95214d82dced290752a4e317779599d632766c16.zip |
- Fix a sign-extension bug in the previous versions.
- Re-add test target. The bug was in my code, not the unit test.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@1306 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r-- | x11/libxshmfence/Makefile | 3 | ||||
-rw-r--r-- | x11/libxshmfence/files/patch-src__xshmfence_futex.h | 4 |
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) { |