Fix compilation on non-Linux: the F_DUPFD_CLOEXEC check was reversed
authorBenjamin Reed <rangerrick@befunk.com>
Wed, 22 Jul 2009 12:47:51 +0000 (08:47 -0400)
committerThiago Macieira <thiago@kde.org>
Wed, 29 Jul 2009 17:13:26 +0000 (19:13 +0200)
Signed-off-by: Thiago Macieira <thiago@kde.org>
dbus/dbus-sysdeps-unix.c

index f0f1e70..e60e614 100644 (file)
@@ -3043,7 +3043,7 @@ _dbus_dup(int        fd,
     return -1;
   }
 
-#ifndef F_DUPFD_CLOEXEC
+#ifdef F_DUPFD_CLOEXEC
   if (!cloexec_done)
 #endif
     {