summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/core-util.c')
-rw-r--r--src/pulsecore/core-util.c7
1 files changed, 6 insertions, 1 deletions
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 <sys/stat.h>
#include <sys/time.h>
#include <dirent.h>
-#include <regex.h>
#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
@@ -50,6 +49,12 @@
#include <sys/utsname.h>
#endif
+#if defined(HAVE_REGEX_H)
+#include <regex.h>
+#elif defined(HAVE_PCREPOSIX_H)
+#include <pcreposix.h>
+#endif
+
#ifdef HAVE_STRTOF_L
#include <locale.h>
#endif