diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-07-03 01:51:49 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-07-03 01:58:01 (GMT) |
commit | 1866485e46039d51ea78a6d672b678aa02f68eef (patch) | |
tree | 1001ed09953102e363127f33bfdcc38c524ea476 /src | |
parent | 8f7ed011e38021f19f50b22d8a5c00d8ccd366ed (diff) | |
download | Qt-1866485e46039d51ea78a6d672b678aa02f68eef.zip Qt-1866485e46039d51ea78a6d672b678aa02f68eef.tar.gz Qt-1866485e46039d51ea78a6d672b678aa02f68eef.tar.bz2 |
Fixed compile of QtCore with some exotic GNU toolchains.
Fixes: corelib/kernel/qcore_unix_p.h:127: error: `O_CLOEXEC' undeclared
Some toolchains claim to provide glibc >= 2.4 but do not define
O_CLOEXEC.
An alternative fix might be to define O_CLOEXEC ourselves as we do
with some of the system call numbers.
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qcore_unix_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcore_unix_p.h b/src/corelib/kernel/qcore_unix_p.h index 1f3fe39..61d8401 100644 --- a/src/corelib/kernel/qcore_unix_p.h +++ b/src/corelib/kernel/qcore_unix_p.h @@ -71,7 +71,7 @@ struct sockaddr; QT_BEGIN_NAMESPACE -#if defined(Q_OS_LINUX) && defined(__GLIBC__) && (__GLIBC__ * 0x100 + __GLIBC_MINOR__) >= 0x0204 +#if defined(Q_OS_LINUX) && defined(O_CLOEXEC) && defined(__GLIBC__) && (__GLIBC__ * 0x100 + __GLIBC_MINOR__) >= 0x0204 // Linux supports thread-safe FD_CLOEXEC # define QT_UNIX_SUPPORTS_THREADSAFE_CLOEXEC 1 |