diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-10-27 10:37:31 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-10-27 10:37:31 +0200 |
commit | a70bea01cc9c81a59d0b7067e8854fc9777f5757 (patch) | |
tree | b32ae6f9fcda0e7ae508995949b6882f55aed718 /src/ip.cpp | |
parent | 81da391e7e6ee12a2607289a1aae16c400e7025e (diff) | |
parent | b3cda2ad6091096264f777a95907050edfdd3ffe (diff) |
Merge branch 'master' of github.com:zeromq/libzmq
Diffstat (limited to 'src/ip.cpp')
-rw-r--r-- | src/ip.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,7 +40,7 @@ zmq::fd_t zmq::open_socket (int domain_, int type_, int protocol_) { // Setting this option result in sane behaviour when exec() functions // are used. Old sockets are closed and don't block TCP ports etc. -#if defined SOCK_CLOEXEC +#if defined ZMQ_HAVE_SOCK_CLOEXEC type_ |= SOCK_CLOEXEC; #endif @@ -51,7 +51,7 @@ zmq::fd_t zmq::open_socket (int domain_, int type_, int protocol_) // If there's no SOCK_CLOEXEC, let's try the second best option. Note that // race condition can cause socket not to be closed (if fork happens // between socket creation and this point). -#if !defined SOCK_CLOEXEC && defined FD_CLOEXEC +#if !defined ZMQ_HAVE_SOCK_CLOEXEC && defined FD_CLOEXEC int rc = fcntl (s, F_SETFD, FD_CLOEXEC); errno_assert (rc != -1); #endif |