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:
parent
1ea06883c0
commit
fadfcac1de
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user