summaryrefslogtreecommitdiff
path: root/devel/libgnuregex/files/patch-regex.h
blob: f76971296606caf9fa6efb4266fd02ce4a001d3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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