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

Merge pull request #3391 from bluca/listener_unistd

Problem: build broken with newer gcc
This commit is contained in:
Simon Giesecke 2019-02-05 14:13:31 -05:00 committed by GitHub
commit 9b1627f041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,12 @@
#include "socket_base.hpp"
#include "stream_engine.hpp"
#ifndef ZMQ_HAVE_WINDOWS
#include <unistd.h>
#else
#include <winsock2.h>
#endif
zmq::stream_listener_base_t::stream_listener_base_t (
zmq::io_thread_t *io_thread_,
zmq::socket_base_t *socket_,