aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-12-05 21:21:58 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-12-05 21:21:58 +0200
commit562bd6b5763decba10251f90c9320abd322f6fd7 (patch)
tree251453d22e2ae0a7696c0a1603869da2742eccc0
parentdf39482aeb06588dec07e3d25779547dbe9fd98b (diff)
parentc241cfac9f4b9cdf0a6d6cf1b1bee4f57f93943d (diff)
downloadegawk-562bd6b5763decba10251f90c9320abd322f6fd7.tar.gz
egawk-562bd6b5763decba10251f90c9320abd322f6fd7.tar.bz2
egawk-562bd6b5763decba10251f90c9320abd322f6fd7.zip
Merge branch 'master' into feature/fix-comments
-rw-r--r--support/ChangeLog4
-rw-r--r--support/regex.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 85d1b7b9..ac5468dc 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,7 @@
+2017-12-05 Arnold D. Robbins <arnold@skeeve.com>
+
+ * regex.h: Yes define __USE_GNU. Needed for non-GLIBC systems.
+
2017-12-01 Arnold D. Robbins <arnold@skeeve.com>
* intprops.h: Sync with GNULIB.
diff --git a/support/regex.h b/support/regex.h
index 1bbbb26c..adddd9ee 100644
--- a/support/regex.h
+++ b/support/regex.h
@@ -28,6 +28,10 @@
#include <sys/types.h>
#endif
+#ifndef _LIBC
+#define __USE_GNU 1
+#endif
+
/* Allow the use in C++ code. */
#ifdef __cplusplus
extern "C" {