mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 11:06:52 +01:00
Fixed compile error, needed unistd.h
This commit is contained in:
@@ -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)
|
|||||||
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());
|
||||||
|
|||||||
Reference in New Issue
Block a user