summaryrefslogtreecommitdiff
path: root/devel/nbpatch/files
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-03-14 22:13:09 +0000
committerryoon <ryoon@pkgsrc.org>2014-03-14 22:13:09 +0000
commit89632f4485d15bd7a8c41ceb80d7a39a2c6c4ba5 (patch)
tree1443cd2eac52351b6297b288c66906bea0318f23 /devel/nbpatch/files
parent4b81406f94da6890494de63478535df5034548e3 (diff)
downloadpkgsrc-89632f4485d15bd7a8c41ceb80d7a39a2c6c4ba5.tar.gz
Fix build under SCO OpenServer 5.0.7/3.2
Set MAXPATHLEN
Diffstat (limited to 'devel/nbpatch/files')
-rw-r--r--devel/nbpatch/files/common.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/nbpatch/files/common.h b/devel/nbpatch/files/common.h
index 3937feaba2b..329fd8484f4 100644
--- a/devel/nbpatch/files/common.h
+++ b/devel/nbpatch/files/common.h
@@ -1,7 +1,7 @@
/*
* $OpenBSD: common.h,v 1.26 2006/03/11 19:41:30 otto Exp $
* $DragonFly: src/usr.bin/patch/common.h,v 1.5 2008/08/10 23:50:12 joerg Exp $
- * $NetBSD: common.h,v 1.3 2009/06/05 20:00:26 joerg Exp $
+ * $NetBSD: common.h,v 1.4 2014/03/14 22:13:09 ryoon Exp $
*/
/*
@@ -61,6 +61,16 @@
#define ORIGEXT ".orig"
#define REJEXT ".rej"
+/*
+ * SCO OpenServer 5.0.7/3.2 has no MAXPATHLEN, but it has PATH_MAX (256).
+ * in limits.h. But it is not usable under ordinal condition.
+ */
+#if !defined(MAXPATHLEN)
+#if defined(_SCO_DS)
+#define MAXPATHLEN 1024
+#endif
+#endif
+
/* handy definitions */
#define strNE(s1,s2) (strcmp(s1, s2))