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

@ -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