chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bacbccb
)
sd-daemon: support for building sd-daemon.c with Bionic (Android)
author
Alvaro Soliverez
<alvaro.soliverez@collabora.co.uk>
Mon, 7 Nov 2011 18:10:25 +0000
(15:10 -0300)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/sd-daemon.c
b/src/sd-daemon.c
index e68b70875c749a22dcbbfc6d7338d2c848f3a317..763e079b4ec0ac7cfa9bda49341e29a0672f2e87 100644
(file)
--- 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>