pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/nbpatch/files Fix build under SCO OpenServer 5.0...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/de6be6af44cd
branches:  trunk
changeset: 632065:de6be6af44cd
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Fri Mar 14 22:13:09 2014 +0000

description:
Fix build under SCO OpenServer 5.0.7/3.2
Set MAXPATHLEN

diffstat:

 devel/nbpatch/files/common.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 04d6304fd591 -r de6be6af44cd devel/nbpatch/files/common.h
--- a/devel/nbpatch/files/common.h      Fri Mar 14 22:11:45 2014 +0000
+++ b/devel/nbpatch/files/common.h      Fri Mar 14 22:13:09 2014 +0000
@@ -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))



Home | Main Index | Thread Index | Old Index