diff options
Diffstat (limited to 'sys-apps/dbus/files/dbus-1.3.0-no-cloexec.patch')
-rw-r--r-- | sys-apps/dbus/files/dbus-1.3.0-no-cloexec.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-apps/dbus/files/dbus-1.3.0-no-cloexec.patch b/sys-apps/dbus/files/dbus-1.3.0-no-cloexec.patch new file mode 100644 index 000000000000..ba76eec00ec4 --- /dev/null +++ b/sys-apps/dbus/files/dbus-1.3.0-no-cloexec.patch @@ -0,0 +1,21 @@ +commit a8cf509a06cdc42568e446dea8a54a398e1c003b +Author: Benjamin Reed <rangerrick@befunk.com> +Date: Wed Jul 22 08:47:51 2009 -0400 + + Fix compilation on non-Linux: the F_DUPFD_CLOEXEC check was reversed + + Signed-off-by: Thiago Macieira <thiago@kde.org> + +diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c +index f0f1e70..e60e614 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 + { |