]> err.no Git - systemd/commitdiff
sd-daemon: support for building sd-daemon.c with Bionic (Android)
authorAlvaro Soliverez <alvaro.soliverez@collabora.co.uk>
Mon, 7 Nov 2011 18:10:25 +0000 (15:10 -0300)
committerLennart Poettering <lennart@poettering.net>
Thu, 2 Feb 2012 18:11:16 +0000 (19:11 +0100)
sd-daemon.h is a drop-in file, so we should make sure it doesn't break
builds for anybody.

https://bugs.freedesktop.org/show_bug.cgi?id=42675

src/sd-daemon.c

index e68b70875c749a22dcbbfc6d7338d2c848f3a317..763e079b4ec0ac7cfa9bda49341e29a0672f2e87 100644 (file)
 #include <sys/stat.h>
 #include <sys/socket.h>
 #include <sys/un.h>
+#ifdef __BIONIC__
+#include <linux/fcntl.h>
+#else
 #include <sys/fcntl.h>
+#endif
 #include <netinet/in.h>
 #include <stdlib.h>
 #include <errno.h>