diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/BoxConfig-MSVC.h | 4 | ||||
-rw-r--r-- | lib/common/ExcludeList.cpp | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/common/BoxConfig-MSVC.h b/lib/common/BoxConfig-MSVC.h index edc44a75..ff7bf14e 100644 --- a/lib/common/BoxConfig-MSVC.h +++ b/lib/common/BoxConfig-MSVC.h @@ -82,7 +82,7 @@ /* #undef HAVE_GETPEEREID */ /* Define to 1 if you have the `getpid' function. */ -#define HAVE_GETPID 1 +// #define HAVE_GETPID 1 /* Define to 1 if you have the `getxattr' function. */ /* #undef HAVE_GETXATTR */ @@ -172,7 +172,7 @@ /* #undef HAVE_READLINE_READLINE_H */ /* Define to 1 if you have the <regex.h> header file. */ -// #define HAVE_REGEX_H 1 +#define HAVE_REGEX_H 1 /* Define to 1 if you have the `setproctitle' function. */ /* #undef HAVE_SETPROCTITLE */ diff --git a/lib/common/ExcludeList.cpp b/lib/common/ExcludeList.cpp index b13b6026..842780b6 100644 --- a/lib/common/ExcludeList.cpp +++ b/lib/common/ExcludeList.cpp @@ -10,7 +10,11 @@ #include "Box.h" #ifdef HAVE_REGEX_H - #include <regex.h> + #ifdef WIN32 + #include <pcreposix.h> + #else + #include <regex.h> + #endif // WIN32 #define EXCLUDELIST_IMPLEMENTATION_REGEX_T_DEFINED #endif |