diff options
-rw-r--r-- | libguile/regex-posix.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libguile/regex-posix.c b/libguile/regex-posix.c index c40919909..859d5a359 100644 --- a/libguile/regex-posix.c +++ b/libguile/regex-posix.c @@ -50,7 +50,15 @@ #include <stdio.h> #include <sys/types.h> + +/* Supposedly, this file is never compiled unless we know we have + POSIX regular expressions. But we still put this in an #ifdef so + the file is CPP'able (for dependency scanning) even on systems that + don't have a <regex.h> header. */ +#ifdef HAVE_REGCOMP #include <regex.h> +#endif + #include "_scm.h" #include "smob.h" #include "symbols.h" |