mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Use PCRE if POSIX regex.h is not available
This commit is contained in:
parent
bb12ff8356
commit
a951c779c6
3 changed files with 18 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue