From 63385c0ad88377805de882f23056ad2a997a099b Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 20 Sep 2013 10:01:47 +0200 Subject: [PATCH 1/8] core-util: check that we actually have regexec before we use it --- src/pulsecore/core-util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 19f1a83..64578ad 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -932,6 +932,7 @@ void pa_reset_priority(void) { } int pa_match(const char *expr, const char *v) { +#ifdef HAVE_REGEXEC int k; regex_t re; int r; @@ -954,6 +955,10 @@ int pa_match(const char *expr, const char *v) { errno = EINVAL; return r; +#else + errno = ENOSYS; + return -1; +#endif } /* Try to parse a boolean string value.*/ -- 1.8.3.1