diff options
author | schwarz <schwarz@pkgsrc.org> | 2005-11-28 20:47:29 +0000 |
---|---|---|
committer | schwarz <schwarz@pkgsrc.org> | 2005-11-28 20:47:29 +0000 |
commit | 68b7d980c7c488f334cc067b570eb05dce732b4f (patch) | |
tree | 629739f537a57c7604daef2f9b20b67beffc88ea | |
parent | 4f68e30cdad1b17128e09f64cb44145de432f790 (diff) | |
download | pkgsrc-68b7d980c7c488f334cc067b570eb05dce732b4f.tar.gz |
added support for systems such as IRIX 5 that do not have _POSIX2_RE_DUP_MAX
defined. Changes approved by grant.
-rw-r--r-- | pkgtools/libnbcompat/files/README | 8 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/private/utils.h | 6 |
2 files changed, 12 insertions, 2 deletions
diff --git a/pkgtools/libnbcompat/files/README b/pkgtools/libnbcompat/files/README index a62564152ba..5c2b65d7115 100644 --- a/pkgtools/libnbcompat/files/README +++ b/pkgtools/libnbcompat/files/README @@ -1,4 +1,4 @@ -$NetBSD: README,v 1.11 2004/09/11 19:01:40 jlam Exp $ +$NetBSD: README,v 1.12 2005/11/28 20:47:29 schwarz Exp $ 0 Introduction ============== @@ -51,6 +51,12 @@ on the following operating systems: NetBSD-1.6.2/i386 <jlam@NetBSD.org> Solaris 9/sparc <salo@NetBSD.org> +libnbcompat-20041024 has been tested to build and install correctly +on the following operating systems: + + Darwin-8.3/powerpc <schwarz@NetBSD.org> + IRIX-5.3/mipseb <schwarz@NetBSD.org> + Linux/i386 <schwarz@NetBSD.org> 3 Usage ======= diff --git a/pkgtools/libnbcompat/files/private/utils.h b/pkgtools/libnbcompat/files/private/utils.h index 0f359753c86..2e1a0696082 100644 --- a/pkgtools/libnbcompat/files/private/utils.h +++ b/pkgtools/libnbcompat/files/private/utils.h @@ -1,4 +1,4 @@ -/* $NetBSD: utils.h,v 1.1 2004/08/23 03:32:13 jlam Exp $ */ +/* $NetBSD: utils.h,v 1.2 2005/11/28 20:47:29 schwarz Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -72,7 +72,11 @@ */ /* utility definitions */ +#ifdef _POSIX2_RE_DUP_MAX #define DUPMAX _POSIX2_RE_DUP_MAX /* xxx is this right? */ +#else +#define DUPMAX 255 /* xxx is that reasonable? */ +#endif #define INFINITY (DUPMAX + 1) #define NC (CHAR_MAX - CHAR_MIN + 1) typedef unsigned char uch; |