summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/sys/regex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/sys/regex.h b/qpid/cpp/src/qpid/sys/regex.h
index 2c5206112a..c183991eb7 100644
--- a/qpid/cpp/src/qpid/sys/regex.h
+++ b/qpid/cpp/src/qpid/sys/regex.h
@@ -19,7 +19,7 @@
*
*/
-#ifdef _POSIX_SOURCE
+#if defined(_POSIX_SOURCE) || defined(__unix__)
# include <stdexcept>
# include <string>
# include <regex.h>
@@ -38,7 +38,7 @@
namespace qpid {
namespace sys {
-#ifdef _POSIX_SOURCE
+#if defined(_POSIX_SOURCE) || defined(__unix__)
class regex {
::regex_t re;