summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2009-07-03 01:51:49 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2009-07-03 01:58:01 (GMT)
commit1866485e46039d51ea78a6d672b678aa02f68eef (patch)
tree1001ed09953102e363127f33bfdcc38c524ea476 /src/corelib/kernel
parent8f7ed011e38021f19f50b22d8a5c00d8ccd366ed (diff)
downloadQt-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/corelib/kernel')
-rw-r--r--src/corelib/kernel/qcore_unix_p.h2
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