summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-04-30 20:53:58 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-04-30 20:53:58 +0000
commit0a6e56abb67d8e91096f229a9dfee868f9c4efe4 (patch)
tree556154e8b5fb6e6d891afcb2b5de0b20222e038f /cpp
parent8dfb3055da5f5a92f620f5918356cc4c43cefdc5 (diff)
downloadqpid-python-0a6e56abb67d8e91096f229a9dfee868f9c4efe4.tar.gz
QPID-4793: Change test so that regex.h works on other unixes
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1477822 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/sys/regex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/regex.h b/cpp/src/qpid/sys/regex.h
index 2c5206112a..c183991eb7 100644
--- a/cpp/src/qpid/sys/regex.h
+++ b/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;