summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Soliverez <alvaro.soliverez@collabora.co.uk>2011-11-07 15:10:25 -0300
committerLennart Poettering <lennart@poettering.net>2012-02-02 19:11:16 +0100
commitce095579172778ebde6a20176875ee2702ec3340 (patch)
tree59d76eda08bf6c2068c27da6bd7dfe3c7440253a
parentbacbccb78cec45c4759ef4291375605284248eb0 (diff)
sd-daemon: support for building sd-daemon.c with Bionic (Android)
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
-rw-r--r--src/sd-daemon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sd-daemon.c b/src/sd-daemon.c
index e68b70875c..763e079b4e 100644
--- a/src/sd-daemon.c
+++ b/src/sd-daemon.c
@@ -32,7 +32,11 @@
#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>