summaryrefslogtreecommitdiff
path: root/lib/regex.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-10-30 05:28:15 +0000
committerJim Meyering <jim@meyering.net>1994-10-30 05:28:15 +0000
commit2654c2012b97aa5de9d902bbc9105e02c6c95044 (patch)
tree5158b8e195d4295971e8774b09e3eecd58aa9b6e /lib/regex.c
parent21b82f43b91d9763aee9acb05049af9159e9203e (diff)
downloadcoreutils-2654c2012b97aa5de9d902bbc9105e02c6c95044.tar.xz
merge with 1.9.1i
Diffstat (limited to 'lib/regex.c')
-rw-r--r--lib/regex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/regex.c b/lib/regex.c
index 7598572fe..c239e2fd1 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -4938,9 +4938,9 @@ re_compile_pattern (pattern, length, bufp)
}
/* Entry points compatible with 4.2 BSD regex library. We don't define
- them if this is an Emacs or POSIX compilation. */
+ them unless specifically requested. */
-#if !defined (emacs) && !defined (_POSIX_SOURCE)
+#ifdef _REGEX_RE_COMP
/* BSD has one and only one pattern buffer. */
static struct re_pattern_buffer re_comp_buf;
@@ -4991,7 +4991,7 @@ re_exec (s)
return
0 <= re_search (&re_comp_buf, s, len, 0, len, (struct re_registers *) 0);
}
-#endif /* not emacs and not _POSIX_SOURCE */
+#endif /* _REGEX_RE_COMP */
/* POSIX.2 functions. Don't define these for Emacs. */