From a951c779c6fe0705f75c1dfbe090deb78485b4e8 Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Tue, 4 Jan 2011 16:48:06 +0100 Subject: Use PCRE if POSIX regex.h is not available --- src/modules/module-match.c | 7 ++++++- src/pulsecore/core-util.c | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/module-match.c b/src/modules/module-match.c index d83c86c3..f9f36fdb 100644 --- a/src/modules/module-match.c +++ b/src/modules/module-match.c @@ -27,10 +27,15 @@ #include #include #include -#include #include #include +#if defined(HAVE_REGEX_H) +#include +#elif defined(HAVE_PCREPOSIX_H) +#include +#endif + #include #include diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 4c4fbfe0..ba9e820d 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -40,7 +40,6 @@ #include #include #include -#include #ifdef HAVE_LANGINFO_H #include @@ -50,6 +49,12 @@ #include #endif +#if defined(HAVE_REGEX_H) +#include +#elif defined(HAVE_PCREPOSIX_H) +#include +#endif + #ifdef HAVE_STRTOF_L #include #endif -- cgit