diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-09 00:46:42 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-12-09 00:46:42 +0000 |
| commit | 3f3f840110f241e50f98a690707687d26d4351c6 (patch) | |
| tree | 1e21bd8f8fe1506f667bd1e46823ff468a110a8b /gnu/lib/libg++ | |
| parent | c9477304b64301c77752be9ef22e0ec5058afdc5 (diff) | |
Notes
Diffstat (limited to 'gnu/lib/libg++')
| -rw-r--r-- | gnu/lib/libg++/librx/rx.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gnu/lib/libg++/librx/rx.c b/gnu/lib/libg++/librx/rx.c index 8671edec3d59..19ddd9084c72 100644 --- a/gnu/lib/libg++/librx/rx.c +++ b/gnu/lib/libg++/librx/rx.c @@ -33,6 +33,7 @@ char rx_version_string[] = "GNU Rx version 0.06"; #include <stdio.h> +#include <unistd.h> /* For _POSIX_VERSION */ #include <ctype.h> #ifndef isgraph #define isgraph(c) (isprint (c) && !isspace (c)) @@ -6816,7 +6817,7 @@ re_compile_fastmap (rxb) /* Entry points compatible with 4.2 BSD regex library. We don't define them if this is an Emacs or POSIX compilation. */ -#if (!defined (emacs) && !defined (_POSIX_SOURCE)) || defined(USE_BSD_REGEX) +#if (!defined (emacs) && !defined (_POSIX_VERSION)) || defined(USE_BSD_REGEX) /* BSD has one and only one pattern buffer. */ static struct re_pattern_buffer rx_comp_buf; @@ -6885,13 +6886,13 @@ re_exec (s) return 0 <= re_search (&rx_comp_buf, s, len, 0, len, (struct re_registers *) 0); } -#endif /* not emacs and not _POSIX_SOURCE */ +#endif /* not emacs and not _POSIX_VERSION */ /* POSIX.2 functions. Don't define these for Emacs. */ -#if !defined(emacs) +#if !defined(emacs) && !defined(_POSIX_VERSION) /* regcomp takes a regular expression as a string and compiles it. @@ -7151,7 +7152,7 @@ regfree (preg) preg->translate = 0; } -#endif /* not emacs */ +#endif /* not emacs && not POSIX */ |
