summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-03-14 22:16:50 +0000
committerryoon <ryoon@pkgsrc.org>2014-03-14 22:16:50 +0000
commite693808fdc59525f874616c1120c9dd39c093f2f (patch)
tree372e86033853ea7c7515e2e18e157005bc6d3d53 /archivers
parent89632f4485d15bd7a8c41ceb80d7a39a2c6c4ba5 (diff)
downloadpkgsrc-e693808fdc59525f874616c1120c9dd39c093f2f.tar.gz
Fix build under SCO OpenServer 5.0.7/3.2
Diffstat (limited to 'archivers')
-rw-r--r--archivers/pax/files/mtree_extern.h12
-rw-r--r--archivers/pax/files/pax.h16
2 files changed, 25 insertions, 3 deletions
diff --git a/archivers/pax/files/mtree_extern.h b/archivers/pax/files/mtree_extern.h
index eb1a272f3c7..7ad6d7af56f 100644
--- a/archivers/pax/files/mtree_extern.h
+++ b/archivers/pax/files/mtree_extern.h
@@ -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 --git a/archivers/pax/files/pax.h b/archivers/pax/files/pax.h
index 24fea69b8bf..26d5319a9dc 100644
--- a/archivers/pax/files/pax.h
+++ b/archivers/pax/files/pax.h
@@ -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 @@ typedef struct oplist {
# 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)