1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-08 12:59:17 -04:00
ports/devel/libgnuregex/files/patch-regex.h
Kyle Evans 31f7950dbe [NEW PORT] devel/libgnuregex: GNU regex(3) extension library
This version of libgnuregex is based on the latest version of devel/gnulib
in the tree, and is intended as a direct replacement for the libgnuregex
that has been historically provided in base.

A port was chosen over all consumers dragging in devel/gnulib to save
rebuilds since more than ~5 consumers need libgnuregex, and this also makes
for an easier migration as ports just need to bring in the port and make
sure LOCALBASE/lib and LOCALBASE/inclue are included.

It is currently expected that ports dependant on this will fully specify the
shlib version against ports tree convention so that we can provide a
consistent experience across all versions of FreeBSD, past and future, using
a less-broken version of the library.

PR:		252245
2020-12-29 05:41:12 +00:00

11 lines
286 B
C

--- regex.h.orig 2020-12-28 19:24:49 UTC
+++ regex.h
@@ -30,7 +30,7 @@ extern "C" {
/* Define __USE_GNU to declare GNU extensions that violate the
POSIX name space rules. */
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) || defined(__BSD_VISIBLE)
# define __USE_GNU 1
#endif