diff options
author | tnn <tnn> | 2015-04-03 16:09:37 +0000 |
---|---|---|
committer | tnn <tnn> | 2015-04-03 16:09:37 +0000 |
commit | 7175728ef8ce40c2d1309645530aaf26cc72ef70 (patch) | |
tree | 47ee293b85a269147b1dded34e8ec97c1f16c4a0 /x11/libdrm/patches | |
parent | 619ef6f29c5de9a71d3f8117b3831e0401bf7d28 (diff) | |
download | pkgsrc-7175728ef8ce40c2d1309645530aaf26cc72ef70.tar.gz |
Fix a broken macro definition. Should fix build on NetBSD 5.
Diffstat (limited to 'x11/libdrm/patches')
-rw-r--r-- | x11/libdrm/patches/patch-xf86atomic.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/libdrm/patches/patch-xf86atomic.h b/x11/libdrm/patches/patch-xf86atomic.h new file mode 100644 index 00000000000..ddd4052580d --- /dev/null +++ b/x11/libdrm/patches/patch-xf86atomic.h @@ -0,0 +1,15 @@ +$NetBSD: patch-xf86atomic.h,v 1.1 2015/04/03 16:09:38 tnn Exp $ + +Fix a broken macro definition. + +--- xf86atomic.h.orig 2015-03-18 17:33:36.000000000 +0000 ++++ xf86atomic.h +@@ -93,7 +93,7 @@ typedef struct { LIBDRM_ATOMIC_TYPE atom + # define atomic_read(x) (int) ((x)->atomic) + # define atomic_set(x, val) ((x)->atomic = (LIBDRM_ATOMIC_TYPE)(val)) + # define atomic_inc(x) (atomic_inc_uint (&(x)->atomic)) +-# define atomic_inc_return (atomic_inc_uint_nv(&(x)->atomic)) ++# define atomic_inc_return(x) (atomic_inc_uint_nv(&(x)->atomic)) + # define atomic_dec_and_test(x) (atomic_dec_uint_nv(&(x)->atomic) == 0) + # define atomic_add(x, v) (atomic_add_int(&(x)->atomic, (v))) + # define atomic_dec(x, v) (atomic_add_int(&(x)->atomic, -(v))) |