From c593cfe164bbdd063b8e8504be14f758b1f0a8c3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 6 Aug 2010 21:33:20 +0200 Subject: sd-daemon: fix compilation on old systems lacking SOCK_CLOEXEC --- src/sd-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sd-daemon.c b/src/sd-daemon.c index 3bb258d341..1197372b81 100644 --- a/src/sd-daemon.c +++ b/src/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; -- cgit v1.2.3-54-g00ecf