diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-04-30 20:53:58 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-04-30 20:53:58 +0000 |
| commit | c58d57b063b51985ae1fcf09bda4cd0569e1edda (patch) | |
| tree | 70c4eea8e132882bbecce7755c2285bb2028da47 /qpid/cpp/src | |
| parent | 0911817b8069d341ed54313100f3ec4fe7fabf11 (diff) | |
| download | qpid-python-c58d57b063b51985ae1fcf09bda4cd0569e1edda.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@1477822 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/sys/regex.h | 4 |
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; |
