pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/par2 Fix build on SunOS.
details: https://anonhg.NetBSD.org/pkgsrc/rev/bae0914a11a3
branches: trunk
changeset: 352564:bae0914a11a3
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Fri Sep 16 17:31:54 2016 +0000
description:
Fix build on SunOS.
diffstat:
archivers/par2/distinfo | 3 ++-
archivers/par2/patches/patch-par2cmdline.h | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r ffeb6887df52 -r bae0914a11a3 archivers/par2/distinfo
--- a/archivers/par2/distinfo Fri Sep 16 16:43:28 2016 +0000
+++ b/archivers/par2/distinfo Fri Sep 16 17:31:54 2016 +0000
@@ -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 -r ffeb6887df52 -r bae0914a11a3 archivers/par2/patches/patch-par2cmdline.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/par2/patches/patch-par2cmdline.h Fri Sep 16 17:31:54 2016 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index