Permalink
Browse files

Merge pull request #310 from damian123/patch-1

Update hwserver.cpp
  • Loading branch information...
2 parents 0b32a21 + bf88c1a commit d727c6e3abeff86ac7449483139536b53caa8269 @hintjens hintjens committed Mar 23, 2013
Showing with 9 additions and 1 deletion.
  1. +9 −1 examples/C++/hwserver.cpp
View
@@ -6,7 +6,11 @@
#include <zmq.hpp>
#include <string>
#include <iostream>
+#ifndef _WIN32
#include <unistd.h>
+#else
+#include <windows.h>
+#endif
int main () {
// Prepare our context and socket
@@ -22,7 +26,11 @@ int main () {
std::cout << "Received Hello" << std::endl;
// Do some 'work'
- sleep (1);
+#ifndef _WIN32
+ sleep(1);
+else
+ Sleep (1);
+#endif
// Send reply back to client
zmq::message_t reply (5);

0 comments on commit d727c6e

Please sign in to comment.