summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-10-26 10:10:48 +0000
committerjperkin <jperkin@pkgsrc.org>2018-10-26 10:10:48 +0000
commitf9e9a5259159004484bf0467815073e3b872b046 (patch)
tree60c2a6d7779d9d1350bc43733606c6791cc869ca /cross
parent1b9a45302f58fd47b81c9d93b24e6a6b0de3aa6b (diff)
downloadpkgsrc-f9e9a5259159004484bf0467815073e3b872b046.tar.gz
freemint-binutils: Fix build on SunOS.
Diffstat (limited to 'cross')
-rw-r--r--cross/freemint-binutils/distinfo3
-rw-r--r--cross/freemint-binutils/patches/patch-libiberty_sigsetmask.c16
2 files changed, 18 insertions, 1 deletions
diff --git a/cross/freemint-binutils/distinfo b/cross/freemint-binutils/distinfo
index b2592ee95f8..cc42079a10a 100644
--- a/cross/freemint-binutils/distinfo
+++ b/cross/freemint-binutils/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 00:47:43 agc Exp $
+$NetBSD: distinfo,v 1.5 2018/10/26 10:10:48 jperkin Exp $
SHA1 (binutils-2.24-mint-20131217.patch.bz2) = f45ee0ce2d52f1e68eac4178db92def72e5fbf2b
RMD160 (binutils-2.24-mint-20131217.patch.bz2) = dcd38d8c7a52a9380cb6131e5ebcdf46fbc517ed
@@ -8,3 +8,4 @@ SHA1 (binutils-2.24.tar.bz2) = 7ac75404ddb3c4910c7594b51ddfc76d4693debb
RMD160 (binutils-2.24.tar.bz2) = b4aa3ea5ba9d0d9f817b2cf136e7f911f692af8d
SHA512 (binutils-2.24.tar.bz2) = 5ec95ad47d49b12c4558a8db0ca2109d3ee1955e3776057f3330c4506f8f4d1cf5e505fbf8a16b98403a0fcdeaaf986fe0a22be6456247dbdace63ce1f776b12
Size (binutils-2.24.tar.bz2) = 22716802 bytes
+SHA1 (patch-libiberty_sigsetmask.c) = e5ada952bc8b667d8ba324f6d0a4ec275aaf1e7b
diff --git a/cross/freemint-binutils/patches/patch-libiberty_sigsetmask.c b/cross/freemint-binutils/patches/patch-libiberty_sigsetmask.c
new file mode 100644
index 00000000000..626a291818d
--- /dev/null
+++ b/cross/freemint-binutils/patches/patch-libiberty_sigsetmask.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-libiberty_sigsetmask.c,v 1.1 2018/10/26 10:10:48 jperkin Exp $
+
+Fix build on SunOS.
+
+--- libiberty/sigsetmask.c.orig 2013-11-04 15:33:40.000000000 +0000
++++ libiberty/sigsetmask.c
+@@ -15,7 +15,9 @@ be the value @code{1}).
+
+ */
+
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901UL)
+ #define _POSIX_SOURCE
++#endif
+ #include <ansidecl.h>
+ /* Including <sys/types.h> seems to be needed by ISC. */
+ #include <sys/types.h>