diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-02 13:49:49 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-02 13:49:49 (GMT) |
commit | d9b28812d0065227e6f66817cd9bf917dfadb0f0 (patch) | |
tree | 3d5a49a8c362dd3d84caba6a18ef67b0d8f97bf3 /src/network | |
parent | 501d1395bd3fc6c67e50216345959d31c0db7707 (diff) | |
download | Qt-d9b28812d0065227e6f66817cd9bf917dfadb0f0.zip Qt-d9b28812d0065227e6f66817cd9bf917dfadb0f0.tar.gz Qt-d9b28812d0065227e6f66817cd9bf917dfadb0f0.tar.bz2 |
Don't compile the FD_CLOEXEC-safe accept4 call if we don't know about SOCK_CLOEXEC
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/socket/qnet_unix_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket/qnet_unix_p.h b/src/network/socket/qnet_unix_p.h index 80a4c58..ffd5b39 100644 --- a/src/network/socket/qnet_unix_p.h +++ b/src/network/socket/qnet_unix_p.h @@ -100,7 +100,7 @@ static inline int qt_safe_accept(int s, struct sockaddr *addr, QT_SOCKLEN_T *add Q_ASSERT((flags & ~O_NONBLOCK) == 0); register int fd; -#if QT_UNIX_SUPPORTS_THREADSAFE_CLOEXEC +#if QT_UNIX_SUPPORTS_THREADSAFE_CLOEXEC && defined(SOCK_CLOEXEC) && defined(SOCK_NONBLOCK) // use accept4 int sockflags = SOCK_CLOEXEC; if (flags & O_NONBLOCK) |