summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gnu/lib/libregex/Makefile4
-rw-r--r--gnu/lib/libregex/regex.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/gnu/lib/libregex/Makefile b/gnu/lib/libregex/Makefile
index 1d59e0d..60f7bdf 100644
--- a/gnu/lib/libregex/Makefile
+++ b/gnu/lib/libregex/Makefile
@@ -1,8 +1,8 @@
-# $Header: /home/ncvs/src/gnu/lib/libregex/Makefile,v 1.17 1996/08/12 19:04:23 ache Exp $
+# $Header: /home/ncvs/src/gnu/lib/libregex/Makefile,v 1.18 1996/08/30 02:12:07 peter Exp $
LIB= gnuregex
-CFLAGS+=-I${.CURDIR} -DHAVE_STRING_H=1 -DSTDC_HEADERS=1
+CFLAGS+=-I${.CURDIR} -DHAVE_STRING_H=1 -DSTDC_HEADERS=1 -DNO_POSIX_COMPAT=1
SRCS= regex.c
NOMAN= noman
diff --git a/gnu/lib/libregex/regex.c b/gnu/lib/libregex/regex.c
index ded13c5..335e5d3 100644
--- a/gnu/lib/libregex/regex.c
+++ b/gnu/lib/libregex/regex.c
@@ -4847,6 +4847,7 @@ re_exec (s)
/* POSIX.2 functions. Don't define these for Emacs. */
#ifndef emacs
+#if !NO_POSIX_COMPAT
/* regcomp takes a regular expression as a string and compiles it.
@@ -5088,6 +5089,7 @@ regfree (preg)
preg->translate = NULL;
}
+#endif /* !NO_POSIX_COMPAT */
#endif /* not emacs */
/*
OpenPOWER on IntegriCloud