From: Benjamin Reed Date: Wed, 22 Jul 2009 12:47:51 +0000 (-0400) Subject: Fix compilation on non-Linux: the F_DUPFD_CLOEXEC check was reversed X-Git-Tag: dbus-1.3.1~270 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8cf509a06cdc42568e446dea8a54a398e1c003b;p=thirdparty%2Fdbus.git Fix compilation on non-Linux: the F_DUPFD_CLOEXEC check was reversed Signed-off-by: Thiago Macieira --- diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index f0f1e7067..e60e61447 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 {