summaryrefslogtreecommitdiff
path: root/x11/xforms
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2012-12-19 14:25:56 +0000
committerjperkin <jperkin@pkgsrc.org>2012-12-19 14:25:56 +0000
commit94eb2f0ba4ec1892fe301cc31c272d477ffb1156 (patch)
tree33398c7bacd3b85cea381937d5efbadf1587221a /x11/xforms
parenta672faeb64d3f9355d696fdcfb60e836ab68cce1 (diff)
downloadpkgsrc-94eb2f0ba4ec1892fe301cc31c272d477ffb1156.tar.gz
Fix build on 64-bit Solaris.
Diffstat (limited to 'x11/xforms')
-rw-r--r--x11/xforms/distinfo3
-rw-r--r--x11/xforms/patches/patch-lib_local.h15
2 files changed, 17 insertions, 1 deletions
diff --git a/x11/xforms/distinfo b/x11/xforms/distinfo
index 8be281f4837..b77b1423a6f 100644
--- a/x11/xforms/distinfo
+++ b/x11/xforms/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2012/07/30 02:53:57 dholland Exp $
+$NetBSD: distinfo,v 1.21 2012/12/19 14:25:56 jperkin Exp $
SHA1 (xforms-1.0.tar.gz) = 865086d2885331ce30b05c7aa07cd8c3d02ce87b
RMD160 (xforms-1.0.tar.gz) = 2972fb4534d3794b2027e81f4222f20a04cc81f8
@@ -11,3 +11,4 @@ SHA1 (patch-ae) = c77dce8a896ac89915c64fcc9700d4079ed81117
SHA1 (patch-af) = ff655f2daf11da78f85faad4aad0fcfcc250569c
SHA1 (patch-ag) = 7364316d275b0da50c9f2749cf462c21aa34b029
SHA1 (patch-ah) = 636f09a48385762d5bee82c4addbe180a2e95a6b
+SHA1 (patch-lib_local.h) = f5d519c72447235e69d48af65c0d2699153d8310
diff --git a/x11/xforms/patches/patch-lib_local.h b/x11/xforms/patches/patch-lib_local.h
new file mode 100644
index 00000000000..1b1290624e4
--- /dev/null
+++ b/x11/xforms/patches/patch-lib_local.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_local.h,v 1.1 2012/12/19 14:25:56 jperkin Exp $
+
+Use strerror() on 64-bit Solaris.
+
+--- lib/local.h.orig 2012-12-19 14:21:49.065051486 +0000
++++ lib/local.h 2012-12-19 14:22:17.622101606 +0000
+@@ -81,7 +81,7 @@
+
+ /* (some) suns do not have strerror, use sys_errlist */
+
+-#if ( defined(sun) || defined(__sun__) ) && !defined( SYSV )
++#if ( defined(sun) || defined(__sun__) ) && !defined( SYSV ) && !defined(_LP64)
+ #define DONT_HAVE_STRERROR
+ #define DONT_HAVE_ATEXIT
+ #define BAD_SPRINTF /* returns char * */