chiark / gitweb /
clang: fix numerous little issues found with clang-analyzer
[elogind.git] / src / sd-daemon.c
index 3bb258d3418570fe6c5ac8540c47c089a77b703e..1197372b81cecaaf791d208cb8105c06a95dbcbe 100644 (file)
@@ -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;