diff options
author | wiz <wiz@pkgsrc.org> | 2015-02-02 14:41:16 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2015-02-02 14:41:16 +0000 |
commit | b8548776cabc03d93eb1cb4d2558908cea94481e (patch) | |
tree | 4ca1eddda20d22f48a0d2b6914a4dfbeb72204e7 /x11/xcb-util-cursor | |
parent | 5cfc7516249d194b0254e4236f2b7576d3b4ba2a (diff) | |
download | pkgsrc-b8548776cabc03d93eb1cb4d2558908cea94481e.tar.gz |
Fix build on OS X based on upstream
http://cgit.freedesktop.org/xcb/util-cursor/commit/?id=f03cc278c6cce0cf721adf9c3764d3c5fba63392
and PR 49627 by Youri Mouton.
Diffstat (limited to 'x11/xcb-util-cursor')
-rw-r--r-- | x11/xcb-util-cursor/distinfo | 3 | ||||
-rw-r--r-- | x11/xcb-util-cursor/patches/patch-cursor_parse__cursor__file.c | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/x11/xcb-util-cursor/distinfo b/x11/xcb-util-cursor/distinfo index e6658e5f953..4db2b13ab27 100644 --- a/x11/xcb-util-cursor/distinfo +++ b/x11/xcb-util-cursor/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.3 2013/11/12 21:27:45 wiz Exp $ +$NetBSD: distinfo,v 1.4 2015/02/02 14:41:16 wiz Exp $ SHA1 (xcb-util-cursor-0.1.1.tar.bz2) = 75ea5d4dc5f185151f171e525023cb76f3b72128 RMD160 (xcb-util-cursor-0.1.1.tar.bz2) = 3dafa5d3ba7d284c2cdd4c8f57d648dfb595fb46 Size (xcb-util-cursor-0.1.1.tar.bz2) = 280852 bytes +SHA1 (patch-cursor_parse__cursor__file.c) = bdae403e10d920edda9f212e785539e3303f9667 diff --git a/x11/xcb-util-cursor/patches/patch-cursor_parse__cursor__file.c b/x11/xcb-util-cursor/patches/patch-cursor_parse__cursor__file.c new file mode 100644 index 00000000000..9399e5abf60 --- /dev/null +++ b/x11/xcb-util-cursor/patches/patch-cursor_parse__cursor__file.c @@ -0,0 +1,17 @@ +$NetBSD: patch-cursor_parse__cursor__file.c,v 1.1 2015/02/02 14:41:16 wiz Exp $ + +Simplified version of +http://cgit.freedesktop.org/xcb/util-cursor/commit/?id=f03cc278c6cce0cf721adf9c3764d3c5fba63392 + +--- cursor/parse_cursor_file.c.orig 2013-11-09 10:15:12.000000000 +0000 ++++ cursor/parse_cursor_file.c +@@ -48,6 +48,9 @@ + # ifndef HAVE_LE32TOH + # define le32toh(x) LE_32(x) + # endif ++#elif defined(__APPLE__) ++#include <libkern/OSByteOrder.h> ++#define le32toh(x) OSSwapLittleToHostInt32(x) + #endif + + #include <xcb/xcb.h> |