Commit fadfcac1 authored by Pieter Hintjens's avatar Pieter Hintjens

Fixed compile error, needed unistd.h

parent 1ea06883
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "../include/zmq.h" #include "../include/zmq.h"
#include <pthread.h> #include <pthread.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include "testutil.hpp" #include "testutil.hpp"
// REQ socket events handled // REQ socket events handled
...@@ -215,7 +216,7 @@ int main (void) ...@@ -215,7 +216,7 @@ int main (void)
assert (rc == 0); assert (rc == 0);
rc = pthread_create (&threads [1], NULL, req_socket_monitor, ctx); rc = pthread_create (&threads [1], NULL, req_socket_monitor, ctx);
assert (rc == 0); assert (rc == 0);
sleep(1); sleep (1);
// Bind REQ and REP // Bind REQ and REP
rc = zmq_bind (rep, addr.c_str()); rc = zmq_bind (rep, addr.c_str());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment