diff options
author | hans <hans@pkgsrc.org> | 2012-03-02 15:32:02 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-03-02 15:32:02 +0000 |
commit | fca2e56d182b02c4a60e8f588b1652ab37011501 (patch) | |
tree | e8270d1e69de57568c3568ed27ce9c038b8a92d0 /cad/electric | |
parent | 26757e5ee10fb2eb957d4c78c3af5db506264a0f (diff) | |
download | pkgsrc-fca2e56d182b02c4a60e8f588b1652ab37011501.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'cad/electric')
-rw-r--r-- | cad/electric/distinfo | 4 | ||||
-rw-r--r-- | cad/electric/patches/patch-ab | 17 |
2 files changed, 16 insertions, 5 deletions
diff --git a/cad/electric/distinfo b/cad/electric/distinfo index 443205c507d..64f0b3fcc30 100644 --- a/cad/electric/distinfo +++ b/cad/electric/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.5 2009/08/01 16:22:25 dholland Exp $ +$NetBSD: distinfo,v 1.6 2012/03/02 15:32:02 hans Exp $ SHA1 (electric-7.00.tar.gz) = 782652b078e81060928eadfae364cd74da07788e RMD160 (electric-7.00.tar.gz) = c57a2e0a32e40d435e125cad6dfc5c1b98e9067b Size (electric-7.00.tar.gz) = 4474722 bytes SHA1 (patch-aa) = ca3aa5c28eef818dce61055daeedc1b7d2e9a8a7 -SHA1 (patch-ab) = f9c648dda476f1e7cd3c3e875236b76198fa317b +SHA1 (patch-ab) = 368810e1dfc1a25cd450f7a3efa74a64b33d9c33 SHA1 (patch-ac) = fac49d88feab792ff665686e9e4fc8a29caab471 SHA1 (patch-ad) = 6be5c47ead4bf023ef6215d7bce496a2f7abb5b0 SHA1 (patch-ae) = 095e56c085ae77d0615134b070082f6599a95280 diff --git a/cad/electric/patches/patch-ab b/cad/electric/patches/patch-ab index 9cd3865b472..50f4fbb5ef6 100644 --- a/cad/electric/patches/patch-ab +++ b/cad/electric/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.2 2004/12/01 04:47:53 dmcmahill Exp $ +$NetBSD: patch-ab,v 1.3 2012/03/02 15:32:02 hans Exp $ - not all !sparcs are little endian. @@ -6,16 +6,27 @@ $NetBSD: patch-ab,v 1.2 2004/12/01 04:47:53 dmcmahill Exp $ --- src/include/config.h.orig Fri Jul 16 01:59:53 2004 +++ src/include/config.h -@@ -32,6 +32,8 @@ +@@ -32,6 +32,19 @@ #ifndef _CONFIG_H_ #define _CONFIG_H_ 1 ++#ifdef __sun ++#include <sys/byteorder.h> ++#define LITTLE_ENDIAN 1234 ++#define BIG_ENDIAN 4321 ++#ifdef _BIG_ENDIAN ++#define BYTE_ORDER BIG_ENDIAN ++#else ++#define BYTE_ORDER LITTLE_ENDIAN ++#endif ++#else +#include <sys/endian.h> ++#endif + /********************* MACHINE DETERMINATION *********************/ /* determine if it is Macintosh OS */ -@@ -135,7 +137,7 @@ +@@ -135,7 +148,7 @@ # ifndef USEQT # include <X11/Intrinsic.h> # endif |