summaryrefslogtreecommitdiff
path: root/cpp/src
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
commit8d289ab61a8a26ba32fbcbc2974417fb35191115 (patch)
tree556154e8b5fb6e6d891afcb2b5de0b20222e038f /cpp/src
parent02194415c5bea22e409cab4869925bdaf394f661 (diff)
downloadqpid-python-8d289ab61a8a26ba32fbcbc2974417fb35191115.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/src')
-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;