summaryrefslogtreecommitdiff
path: root/libguile/regex-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/regex-posix.c')
-rw-r--r--libguile/regex-posix.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libguile/regex-posix.c b/libguile/regex-posix.c
index 28afdd6b1..e941393d0 100644
--- a/libguile/regex-posix.c
+++ b/libguile/regex-posix.c
@@ -58,8 +58,18 @@
the file is CPP'able (for dependency scanning) even on systems that
don't have a <regex.h> header. */
#ifdef HAVE_REGCOMP
+#ifdef HAVE_REGEX_H
#include <regex.h>
-#endif
+#else
+#ifdef HAVE_RXPOSIX_H
+#include <rxposix.h> /* GNU Rx library */
+#else
+#ifdef HAVE_RX_RXPOSIX_H
+#include <rx/rxposix.h> /* GNU Rx library on Linux */
+#endif
+#endif
+#endif
+#endif
#include "smob.h"
#include "symbols.h"