pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files Add SCO OpenServer 5.0.7/3....
details: https://anonhg.NetBSD.org/pkgsrc/rev/acf23da11693
branches: trunk
changeset: 632062:acf23da11693
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Fri Mar 14 22:08:17 2014 +0000
description:
Add SCO OpenServer 5.0.7/3.2 support
diffstat:
pkgtools/libnbcompat/files/__fts13.c | 14 ++++++++++++--
pkgtools/libnbcompat/files/__glob13.c | 14 ++++++++++++--
pkgtools/libnbcompat/files/configure | 8 ++++++++
pkgtools/libnbcompat/files/configure.ac | 12 +++++++++++-
pkgtools/libnbcompat/files/nbcompat/db.h | 12 +++++++++++-
5 files changed, 54 insertions(+), 6 deletions(-)
diffs (137 lines):
diff -r 81a9987753b8 -r acf23da11693 pkgtools/libnbcompat/files/__fts13.c
--- a/pkgtools/libnbcompat/files/__fts13.c Fri Mar 14 22:05:18 2014 +0000
+++ b/pkgtools/libnbcompat/files/__fts13.c Fri Mar 14 22:08:17 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __fts13.c,v 1.10 2008/10/30 16:00:54 joerg Exp $ */
+/* $NetBSD: __fts13.c,v 1.11 2014/03/14 22:08:17 ryoon Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#else
-__RCSID("$NetBSD: __fts13.c,v 1.10 2008/10/30 16:00:54 joerg Exp $");
+__RCSID("$NetBSD: __fts13.c,v 1.11 2014/03/14 22:08:17 ryoon Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -68,6 +68,16 @@
#endif
#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
+
#if 0
#ifdef __weak_alias
#ifdef __LIBC12_SOURCE__
diff -r 81a9987753b8 -r acf23da11693 pkgtools/libnbcompat/files/__glob13.c
--- a/pkgtools/libnbcompat/files/__glob13.c Fri Mar 14 22:05:18 2014 +0000
+++ b/pkgtools/libnbcompat/files/__glob13.c Fri Mar 14 22:08:17 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __glob13.c,v 1.3 2008/10/30 16:00:54 joerg Exp $ */
+/* $NetBSD: __glob13.c,v 1.4 2014/03/14 22:08:17 ryoon Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -38,11 +38,21 @@
#if 0
static char sccsid[] = "@(#)glob.c 8.3 (Berkeley) 10/13/93";
#else
-__RCSID("$NetBSD: __glob13.c,v 1.3 2008/10/30 16:00:54 joerg Exp $");
+__RCSID("$NetBSD: __glob13.c,v 1.4 2014/03/14 22:08:17 ryoon Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
/*
+ * 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
+
+/*
* glob(3) -- a superset of the one defined in POSIX 1003.2.
*
* The [!...] convention to negate a range is supported (SysV, Posix, ksh).
diff -r 81a9987753b8 -r acf23da11693 pkgtools/libnbcompat/files/configure
--- a/pkgtools/libnbcompat/files/configure Fri Mar 14 22:05:18 2014 +0000
+++ b/pkgtools/libnbcompat/files/configure Fri Mar 14 22:08:17 2014 +0000
@@ -4779,6 +4779,14 @@
;;
+*-*-sco3.2v5*)
+ $as_echo "#define BROKEN_PREAD 1" >>confdefs.h
+
+
+ $as_echo "#define BROKEN_PWRITE 1" >>confdefs.h
+
+
+ ;;
esac
# Check whether --enable-db was given.
diff -r 81a9987753b8 -r acf23da11693 pkgtools/libnbcompat/files/configure.ac
--- a/pkgtools/libnbcompat/files/configure.ac Fri Mar 14 22:05:18 2014 +0000
+++ b/pkgtools/libnbcompat/files/configure.ac Fri Mar 14 22:08:17 2014 +0000
@@ -1,4 +1,4 @@
-dnl $NetBSD: configure.ac,v 1.81 2013/09/08 16:24:43 ryoon Exp $
+dnl $NetBSD: configure.ac,v 1.82 2014/03/14 22:08:17 ryoon Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
@@ -168,6 +168,16 @@
Define to 1 if the `pwrite' function is broken.
])
;;
+*-*-sco3.2v5*)
+ AC_DEFINE(BROKEN_PREAD)
+ AH_TEMPLATE([BROKEN_PREAD], [
+ Define to 1 if the `pread' function is broken.
+])
+ AC_DEFINE(BROKEN_PWRITE)
+ AH_TEMPLATE([BROKEN_PWRITE], [
+ Define to 1 if the `pwrite' function is broken.
+])
+ ;;
esac
AC_ARG_ENABLE([db],
diff -r 81a9987753b8 -r acf23da11693 pkgtools/libnbcompat/files/nbcompat/db.h
--- a/pkgtools/libnbcompat/files/nbcompat/db.h Fri Mar 14 22:05:18 2014 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat/db.h Fri Mar 14 22:08:17 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db.h,v 1.3 2010/03/03 06:03:45 obache Exp $ */
+/* $NetBSD: db.h,v 1.4 2014/03/14 22:08:18 ryoon Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -51,6 +51,16 @@
#define pgno_t db_pgno_t
#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
+
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */
typedef uint32_t pgno_t;
#define MAX_PAGE_OFFSET 65535 /* >= # of bytes in a page */
Home |
Main Index |
Thread Index |
Old Index