changeset 340:12f1e5ab0111

merge with 1.9.1i
author Jim Meyering <jim@meyering.net>
date Sun, 30 Oct 1994 05:28:15 +0000
parents 4989e3d41e10
children df2001ec0cd4
files lib/regex.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lib/regex.c	Sat Oct 29 05:06:43 1994 +0000
+++ b/lib/regex.c	Sun Oct 30 05:28:15 1994 +0000
@@ -4938,9 +4938,9 @@
 }     
 
 /* 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)
+   them unless specifically requested.  */
+
+#ifdef _REGEX_RE_COMP
 
 /* BSD has one and only one pattern buffer.  */
 static struct re_pattern_buffer re_comp_buf;
@@ -4991,7 +4991,7 @@
   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.  */