summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Reed <rangerrick@befunk.com>2009-07-22 08:47:51 -0400
committerThiago Macieira <thiago@kde.org>2009-07-29 19:13:26 +0200
commita8cf509a06cdc42568e446dea8a54a398e1c003b (patch)
tree1ded589312d4c5121dcfbfc63b210d90a40ef1ac
parentc1a31b6b30dc683f219ffb8c655138b07a12a187 (diff)
Fix compilation on non-Linux: the F_DUPFD_CLOEXEC check was reversed
Signed-off-by: Thiago Macieira <thiago@kde.org>
-rw-r--r--dbus/dbus-sysdeps-unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c
index f0f1e706..e60e6144 100644
--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -3043,7 +3043,7 @@ _dbus_dup(int fd,
return -1;
}
-#ifndef F_DUPFD_CLOEXEC
+#ifdef F_DUPFD_CLOEXEC
if (!cloexec_done)
#endif
{