diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-09-16 17:31:54 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-09-16 17:31:54 +0000 |
commit | 3809bc6786cda1afe8d4f771d50fa1f57200ad91 (patch) | |
tree | ff1eab007d4b8b844e4ef4d75167523458828986 /archivers | |
parent | 1500e56709bca694ab88225d22811a4519ddccad (diff) | |
download | pkgsrc-3809bc6786cda1afe8d4f771d50fa1f57200ad91.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/par2/distinfo | 3 | ||||
-rw-r--r-- | archivers/par2/patches/patch-par2cmdline.h | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/archivers/par2/distinfo b/archivers/par2/distinfo index 24f7e8481df..dd2dd734abf 100644 --- a/archivers/par2/distinfo +++ b/archivers/par2/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.14 2016/09/01 16:33:43 wiz Exp $ +$NetBSD: distinfo,v 1.15 2016/09/16 17:31:54 jperkin Exp $ SHA1 (par2-0.6.14.tar.gz) = 68541996fd7eca6a0c711134dbc4ad8884907d4a RMD160 (par2-0.6.14.tar.gz) = d6c29f4e502e68f1cc72d1628a2fc273283ba8db SHA512 (par2-0.6.14.tar.gz) = 3d20a2a231fe36f5b12f070655c0eb7ce17fc5914187e0f90fe066571260736da4200e73028405eb44e875f29c64254390088a1365febba7cd3beeddae76b471 Size (par2-0.6.14.tar.gz) = 3539262 bytes SHA1 (patch-diskfile.cpp) = c2319215a6438322edeb28c4413a0a26dcade2d5 +SHA1 (patch-par2cmdline.h) = 416b5ae047c2e3d45fd286ab8f1919092693a87f diff --git a/archivers/par2/patches/patch-par2cmdline.h b/archivers/par2/patches/patch-par2cmdline.h new file mode 100644 index 00000000000..ca2cb5d454d --- /dev/null +++ b/archivers/par2/patches/patch-par2cmdline.h @@ -0,0 +1,23 @@ +$NetBSD: patch-par2cmdline.h,v 1.1 2016/09/16 17:31:54 jperkin Exp $ + +Use GCC macros on SunOS, _LITTLE_ENDIAN is defined but not set. + +--- par2cmdline.h.orig 2015-08-02 16:09:46.000000000 +0000 ++++ par2cmdline.h +@@ -154,11 +154,14 @@ typedef unsigned long long u64; + #if HAVE_ENDIAN_H + # include <endian.h> + # ifndef __LITTLE_ENDIAN +-# ifdef _LITTLE_ENDIAN +-# define __LITTLE_ENDIAN _LITTLE_ENDIAN ++# if defined(_LITTLE_ENDIAN) && !defined(__sun) + # define __LITTLE_ENDIAN _LITTLE_ENDIAN + # define __BIG_ENDIAN _BIG_ENDIAN + # define __PDP_ENDIAN _PDP_ENDIAN ++# elif defined(__ORDER_LITTLE_ENDIAN__) ++# define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__ ++# define __BIG_ENDIAN __ORDER_BIG_ENDIAN__ ++# define __PDP_ENDIAN __ORDER_PDP_ENDIAN__ + # else + # error <endian.h> does not define __LITTLE_ENDIAN etc. + # endif |