Use PCRE if POSIX regex.h is not available

This commit is contained in:
Maarten Bosmans 2011-01-04 16:48:06 +01:00
parent bb12ff8356
commit a951c779c6
3 changed files with 18 additions and 5 deletions

View file

@ -27,10 +27,15 @@
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#if defined(HAVE_REGEX_H)
#include <regex.h>
#elif defined(HAVE_PCREPOSIX_H)
#include <pcreposix.h>
#endif
#include <pulse/xmalloc.h>
#include <pulsecore/core-error.h>