mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Fix inconsistently using #if or #ifdef instead of #if defined
This commit is contained in:
parent
1eee9ce035
commit
73c370dd17
@ -73,11 +73,11 @@ zmq::fd_t zmq::open_socket (int domain_, int type_, int protocol_)
|
||||
|
||||
void zmq::unblock_socket (fd_t s_)
|
||||
{
|
||||
#ifdef ZMQ_HAVE_WINDOWS
|
||||
#if defined ZMQ_HAVE_WINDOWS
|
||||
u_long nonblock = 1;
|
||||
int rc = ioctlsocket (s_, FIONBIO, &nonblock);
|
||||
wsa_assert (rc != SOCKET_ERROR);
|
||||
#elif ZMQ_HAVE_OPENVMS
|
||||
#elif defined ZMQ_HAVE_OPENVMS
|
||||
int nonblock = 1;
|
||||
int rc = ioctl (s_, FIONBIO, &nonblock);
|
||||
errno_assert (rc != -1);
|
||||
|
@ -56,7 +56,7 @@
|
||||
|
||||
|
||||
// XSI vector I/O
|
||||
#if ZMQ_HAVE_UIO
|
||||
#if defined ZMQ_HAVE_UIO
|
||||
#include <sys/uio.h>
|
||||
#else
|
||||
struct iovec {
|
||||
|
Loading…
x
Reference in New Issue
Block a user