summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-07-15 14:58:08 +0000
committerryoon <ryoon@pkgsrc.org>2014-07-15 14:58:08 +0000
commit0beab6a0a378dbe7bdbdf77f33299207d38cb053 (patch)
treeeca7f22fd450eee937551a18dde076c496675d92 /lang
parente18b38d14068b966174de2313a26e0a419febf7f (diff)
downloadpkgsrc-0beab6a0a378dbe7bdbdf77f33299207d38cb053.tar.gz
Fix build under SCO OpenServer 5.0.7/3.2.
Diffstat (limited to 'lang')
-rw-r--r--lang/gawk/distinfo3
-rw-r--r--lang/gawk/patches/patch-extension_gawkfts.c22
2 files changed, 24 insertions, 1 deletions
diff --git a/lang/gawk/distinfo b/lang/gawk/distinfo
index 7d10c58095d..00d79dac99a 100644
--- a/lang/gawk/distinfo
+++ b/lang/gawk/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.30 2014/06/06 23:24:10 ryoon Exp $
+$NetBSD: distinfo,v 1.31 2014/07/15 14:58:08 ryoon Exp $
SHA1 (gawk-4.1.1.tar.xz) = 547feb48d20e923aff58daccee97c94e047fdc18
RMD160 (gawk-4.1.1.tar.xz) = a5a6ab9491bf702310cef7c035531cc7fad0a62d
@@ -7,4 +7,5 @@ SHA1 (patch-Makefile.in) = 12eb8f205fa224634b9f5122cfca55803382516f
SHA1 (patch-awk.h) = 2292be5ec392e7fea5688fbb18012a735e43803f
SHA1 (patch-extension_Makefile.in) = bc735eebe2e094c97e46b08a782b143d2042a865
SHA1 (patch-extension_filefuncs.c) = 212774354ab55f69ff67728470ab23b43e038093
+SHA1 (patch-extension_gawkfts.c) = a6c59c42c3f5564ee078b373c9a8d09aa6732a0b
SHA1 (patch-test_Makefile.in) = 7610407e0735f4b78b568e24717f3f103f8566d3
diff --git a/lang/gawk/patches/patch-extension_gawkfts.c b/lang/gawk/patches/patch-extension_gawkfts.c
new file mode 100644
index 00000000000..f8cb1510baa
--- /dev/null
+++ b/lang/gawk/patches/patch-extension_gawkfts.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-extension_gawkfts.c,v 1.1 2014/07/15 14:58:08 ryoon Exp $
+
+--- extension/gawkfts.c.orig 2013-05-02 19:51:30.000000000 +0000
++++ extension/gawkfts.c
+@@ -71,6 +71,17 @@ static char sccsid[] = "@(#)fts.c 8.6 (B
+ #endif
+ */
+
++/*
++ * SCO OpenServer 5.0.7/3.2 has no MAXPATHLEN, but it has PATH_MAX (256).
++ * in limits.h. PATH_MAX is defined alternatively under non-OpenServer OS,
++ * and it is used in dirname.c of bmake.
++ */
++#if !defined(MAXPATHLEN)
++#if defined(_SCO_DS)
++#define MAXPATHLEN 1024
++#endif
++#endif
++
+ #ifndef MAX
+ static int MAX(int x, int y)
+ {