ports/devel/libgnuregex/files/patch-regex.c
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

20 lines
496 B
C

--- regex.c.orig 2014-02-03 00:48:46 UTC
+++ regex.c
@@ -18,7 +18,7 @@
<http://www.gnu.org/licenses/>. */
#ifndef _LIBC
-# include <config.h>
+# include "config.h"
# if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__
# pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
@@ -64,7 +64,7 @@
#undefs RE_DUP_MAX and sets it to the right value. */
#include <limits.h>
-#include <regex.h>
+#include "regex.h"
#include "regex_internal.h"
#include "regex_internal.c"