diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-07-17 12:24:34 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-07-17 12:24:34 +0000 |
commit | 833e1a2965bd4c2c37900adc65f7301ec85b417e (patch) | |
tree | 1beeaf9ff16fdda14ce0c6ccbd4f4586e9bcb261 | |
parent | eef5729cb0423f64d76c1b7b37efa25d4be722bd (diff) | |
download | pkgsrc-833e1a2965bd4c2c37900adc65f7301ec85b417e.tar.gz |
Fix SCO OpenServer 5.0.7/3.2 build.
-rw-r--r-- | textproc/gsed/distinfo | 3 | ||||
-rw-r--r-- | textproc/gsed/patches/patch-sed_utils.c | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/textproc/gsed/distinfo b/textproc/gsed/distinfo index a5d87c37626..a5893f5818a 100644 --- a/textproc/gsed/distinfo +++ b/textproc/gsed/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.19 2013/01/23 14:31:30 adam Exp $ +$NetBSD: distinfo,v 1.20 2014/07/17 12:24:34 ryoon Exp $ SHA1 (sed-4.2.2.tar.bz2) = f17ab6b1a7bcb2ad4ed125ef78948092d070de8f RMD160 (sed-4.2.2.tar.bz2) = 24797695f49c6bfd73236d1764f69fd3f9352202 Size (sed-4.2.2.tar.bz2) = 1059414 bytes +SHA1 (patch-sed_utils.c) = b84197d9286406b60a7f222d2d1a84aeb13e720a diff --git a/textproc/gsed/patches/patch-sed_utils.c b/textproc/gsed/patches/patch-sed_utils.c new file mode 100644 index 00000000000..c361050ca88 --- /dev/null +++ b/textproc/gsed/patches/patch-sed_utils.c @@ -0,0 +1,21 @@ +$NetBSD: patch-sed_utils.c,v 1.1 2014/07/17 12:24:34 ryoon Exp $ + +--- sed/utils.c.orig 2012-03-16 09:13:31.000000000 +0000 ++++ sed/utils.c +@@ -32,6 +32,16 @@ + #include "pathmax.h" + #include "fwriting.h" + ++/* ++ * SCO OpenServer 5.0.7/3.2 has no MAXPATHLEN, but it has PATH_MAX (256). ++ * in limits.h. PATH_MAX is not available under ordinary condition. ++ */ ++#if !defined(PATH_MAX) ++#if defined(_SCO_DS) ++#define PATH_MAX 1024 ++#endif ++#endif ++ + const char *myname; + + /* Store information about files opened with ck_fopen |