summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d25bd32)
raw | patch | inline | side by side (parent: d25bd32)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 8 Sep 2015 14:13:47 +0000 (16:13 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 14 Sep 2015 18:40:45 +0000 (20:40 +0200) |
The whole function is already wrapped in #ifdef KERNEL_LINUX
src/daemon/collectd.c | patch | blob | history |
diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c
index 02fd66f80ee3c3c9cf563c3629b6e34147e7dd49..df238e710ad532f686f60764b4f10abf416fb6ce 100644 (file)
--- a/src/daemon/collectd.c
+++ b/src/daemon/collectd.c
}
else
{
-#if KERNEL_LINUX
/* Linux abstract namespace socket: specify address as "\0foo", i.e.
* start with a null byte. Since null bytes have no special meaning in
* that case, we have to set su_size correctly to cover only the bytes
su_size = sizeof (sa_family_t) + strlen (notifysocket);
if (su_size > sizeof (su))
su_size = sizeof (su);
-#else
- ERROR ("Systemd socket uses Linux abstract namespace notation (\"%s\"), "
- "but I don't appear to be running on Linux.", notifysocket);
- return 0;
-#endif
}
if (sendto (fd, buffer, strlen (buffer), MSG_NOSIGNAL, (void *) &su, (socklen_t) su_size) < 0)