From ff2325c92c411e6718ae38d6976f54580ed57e86 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 7 Aug 2010 21:04:59 +0200 Subject: [PATCH] sd-daemon: update from upstream This updates the sd-daemon.[ch] copy from upstream, which makes sure thet the code compiles even if SOCK_CLOEXEC is not supported. --- dbus/sd-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus/sd-daemon.c b/dbus/sd-daemon.c index 3bb258d34..1197372b8 100644 --- a/dbus/sd-daemon.c +++ b/dbus/sd-daemon.c @@ -325,7 +325,7 @@ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t } int sd_notify(int unset_environment, const char *state) { -#if defined(DISABLE_SYSTEMD) || !defined(__linux__) +#if defined(DISABLE_SYSTEMD) || !defined(__linux__) || !defined(SOCK_CLOEXEC) return 0; #else int fd = -1, r; -- 2.47.3