summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-02-26 20:03:58 +0100
committerMartin Lucina <mato@kotelna.sk>2010-02-26 20:03:58 +0100
commitefefa069b2ce407a7da4328ab024c47920a76960 (patch)
treea0e49b055888297ce438fa21e3e4bb8f4e5631e0 /src
parentdeda7ca54a3c8f1ba735e8654ca87f8808606122 (diff)
Cygwin support
Diffstat (limited to 'src')
-rw-r--r--src/uuid.cpp3
-rw-r--r--src/uuid.hpp6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/uuid.cpp b/src/uuid.cpp
index 7332f1f..5991bfb 100644
--- a/src/uuid.cpp
+++ b/src/uuid.cpp
@@ -75,7 +75,8 @@ const char *zmq::uuid_t::to_string ()
return string_buf;
}
-#elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_OSX
+#elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_SOLARIS ||\
+ defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_CYGWIN
#include <uuid/uuid.h>
diff --git a/src/uuid.hpp b/src/uuid.hpp
index dfaef01..d24ef2c 100644
--- a/src/uuid.hpp
+++ b/src/uuid.hpp
@@ -25,7 +25,8 @@
#if defined ZMQ_HAVE_FREEBSD || defined ZMQ_HAVE_NETBSD
#include <uuid.h>
-#elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_OSX
+#elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_SOLARIS ||\
+ defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_CYGWIN
#include <uuid/uuid.h>
#elif defined ZMQ_HAVE_WINDOWS
#include <Rpc.h>
@@ -75,7 +76,8 @@ namespace zmq
#elif defined ZMQ_HAVE_FREEBSD || defined ZMQ_HAVE_NETBSD
::uuid_t uuid;
char *string_buf;
-#elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_OSX
+#elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_SOLARIS ||\
+ defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_CYGWIN
::uuid_t uuid;
char string_buf [uuid_string_len + 1];
#else