0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

Fixed compile error, needed unistd.h

This commit is contained in:
Pieter Hintjens 2013-06-22 13:50:22 +02:00
parent 1ea06883c0
commit fadfcac1de

View File

@ -21,6 +21,7 @@
#include "../include/zmq.h"
#include <pthread.h>
#include <string.h>
#include <unistd.h>
#include "testutil.hpp"
// REQ socket events handled
@ -215,7 +216,7 @@ int main (void)
assert (rc == 0);
rc = pthread_create (&threads [1], NULL, req_socket_monitor, ctx);
assert (rc == 0);
sleep(1);
sleep (1);
// Bind REQ and REP
rc = zmq_bind (rep, addr.c_str());