diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-03-14 22:08:17 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-03-14 22:08:17 +0000 |
commit | cdd2e4eda3b25371c3fc1039d0d7359661cb5711 (patch) | |
tree | 054a8eb2bc78133d91c733fc807f33f60a6f8dbb | |
parent | 85d3b62d97296ebc38215e41f4b0a33f14a88184 (diff) | |
download | pkgsrc-cdd2e4eda3b25371c3fc1039d0d7359661cb5711.tar.gz |
Add SCO OpenServer 5.0.7/3.2 support
-rw-r--r-- | pkgtools/libnbcompat/files/__fts13.c | 14 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/__glob13.c | 14 | ||||
-rwxr-xr-x | pkgtools/libnbcompat/files/configure | 8 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/configure.ac | 12 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/db.h | 12 |
5 files changed, 54 insertions, 6 deletions
diff --git a/pkgtools/libnbcompat/files/__fts13.c b/pkgtools/libnbcompat/files/__fts13.c index f4909f2b902..914a46c4982 100644 --- a/pkgtools/libnbcompat/files/__fts13.c +++ b/pkgtools/libnbcompat/files/__fts13.c @@ -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 @@ __RCSID("$NetBSD: __fts13.c,v 1.10 2008/10/30 16:00:54 joerg Exp $"); #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 --git a/pkgtools/libnbcompat/files/__glob13.c b/pkgtools/libnbcompat/files/__glob13.c index 37e5aede2c9..be59e51820f 100644 --- a/pkgtools/libnbcompat/files/__glob13.c +++ b/pkgtools/libnbcompat/files/__glob13.c @@ -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 --git a/pkgtools/libnbcompat/files/configure b/pkgtools/libnbcompat/files/configure index 61cbe3eed21..f97e295a351 100755 --- a/pkgtools/libnbcompat/files/configure +++ b/pkgtools/libnbcompat/files/configure @@ -4779,6 +4779,14 @@ case $host in ;; +*-*-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 --git a/pkgtools/libnbcompat/files/configure.ac b/pkgtools/libnbcompat/files/configure.ac index acda936fd37..204014d3fe5 100644 --- a/pkgtools/libnbcompat/files/configure.ac +++ b/pkgtools/libnbcompat/files/configure.ac @@ -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 @@ case $host in 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 --git a/pkgtools/libnbcompat/files/nbcompat/db.h b/pkgtools/libnbcompat/files/nbcompat/db.h index b0f248dd81a..291c295c138 100644 --- a/pkgtools/libnbcompat/files/nbcompat/db.h +++ b/pkgtools/libnbcompat/files/nbcompat/db.h @@ -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 */ |