diff options
-rw-r--r-- | support/ChangeLog | 4 | ||||
-rw-r--r-- | support/regex.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index a4520ece..d580505f 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" { |