diff --git a/gnu/lib/libregex/Makefile b/gnu/lib/libregex/Makefile index 6525bffa0b50..56b6afdc53f8 100644 --- a/gnu/lib/libregex/Makefile +++ b/gnu/lib/libregex/Makefile @@ -14,7 +14,7 @@ WRINCS= gnuregex.h PXINCS= posix/regex.h PXINCSDIR= ${INCSDIR}/posix -CFLAGS+=-D_REGEX_RE_COMP -DSTDC_HEADERS +CFLAGS+=-DHAVE_CONFIG_H -I${.CURDIR} CLEANFILES= regex.h.patched gnuregex.c regex.h.patched: regex.h diff --git a/gnu/lib/libregex/config.h b/gnu/lib/libregex/config.h new file mode 100644 index 000000000000..bf7f0a03b867 --- /dev/null +++ b/gnu/lib/libregex/config.h @@ -0,0 +1,12 @@ +/* $FreeBSD$ */ + +#define _REGEX_RE_COMP 1 +#define HAVE_LANGINFO_H 1 +#define HAVE_LANGINFO_CODESET 1 +#define HAVE_LOCALE_H 1 +#define HAVE_WCHAR_H 1 +#define HAVE_WCTYPE_H 1 +#define HAVE_ISBLANK 1 +#define HAVE_WCRTOMB 1 +#define HAVE_MBRTOWC 1 +#define HAVE_WCSCOLL 1