pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/archivers/pax/files Fix build under SCO OpenServer 5.0...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c9d66e34c09
branches:  trunk
changeset: 632066:9c9d66e34c09
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Fri Mar 14 22:16:50 2014 +0000

description:
Fix build under SCO OpenServer 5.0.7/3.2

diffstat:

 archivers/pax/files/mtree_extern.h |  12 +++++++++++-
 archivers/pax/files/pax.h          |  16 ++++++++++++++--
 2 files changed, 25 insertions(+), 3 deletions(-)

diffs (70 lines):

diff -r de6be6af44cd -r 9c9d66e34c09 archivers/pax/files/mtree_extern.h
--- a/archivers/pax/files/mtree_extern.h        Fri Mar 14 22:13:09 2014 +0000
+++ b/archivers/pax/files/mtree_extern.h        Fri Mar 14 22:16:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mtree_extern.h,v 1.3 2008/10/26 12:48:48 joerg Exp $   */
+/*     $NetBSD: mtree_extern.h,v 1.4 2014/03/14 22:16:50 ryoon Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -59,6 +59,16 @@
 #define MAXHOSTNAMELEN 256
 #endif
 
+/*
+ * 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
+
 void    addtag(slist_t *, char *);
 int     check_excludes(const char *, const char *);
 int     compare(NODE *, FTSENT *);
diff -r de6be6af44cd -r 9c9d66e34c09 archivers/pax/files/pax.h
--- a/archivers/pax/files/pax.h Fri Mar 14 22:13:09 2014 +0000
+++ b/archivers/pax/files/pax.h Fri Mar 14 22:16:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pax.h,v 1.12 2010/01/30 08:46:20 obache Exp $  */
+/*     $NetBSD: pax.h,v 1.13 2014/03/14 22:16:50 ryoon Exp $   */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -40,7 +40,7 @@
 #endif
 
 /* Tape support only available if one of the following is available. */
-#if (HAVE_SYS_MTIO_H || HAVE_SYS_TAPE_H) && !defined(UNIXWARE)
+#if (HAVE_SYS_MTIO_H || HAVE_SYS_TAPE_H) && !defined(UNIXWARE) && !defined(_SCO_DS)
 #define SUPPORT_TAPE 1
 #endif
 
@@ -81,6 +81,16 @@
 #endif
 
 /*
+ * 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
+
+/*
  * Pattern matching structure
  *
  * Used to store command line patterns
@@ -255,6 +265,8 @@
 #  define major(x)             ((int)(0x00ff & ((x) >> 8)))
 #  define minor(x)             ((int)(0xffff00ff & (x)))
 #  define makedev(maj,min)     ((0xff00 & ((maj)<<8))|(0xffff00ff & (min)))
+# elif defined(_SCO_DS)
+#  include <sys/sysmacros.h>
 # endif
 # define MAJOR(x)      major(x)
 # define MINOR(x)      minor(x)



Home | Main Index | Thread Index | Old Index