chiark / gitweb /
Include <fcntl.h> instead of <sys/fcntl.h>
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 14 Apr 2013 01:02:03 +0000 (21:02 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 14 Apr 2013 01:02:03 +0000 (21:02 -0400)
<fcntl.h> is POSIX. On Linux, <sys/fcntl.h> simply includes
<fcntl.h>, so there should be on difference. On Android
likewise, except that there is some more stuff. QNX has
only <fcntl.h>.

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

src/journal/cat.c
src/libsystemd-daemon/sd-daemon.c

index a95392ccb0fc7336e9df76eb22b64ed2e1cbd936..ea615783531eeb9a34dcf558020ed7885780328f 100644 (file)
@@ -25,7 +25,7 @@
 #include <unistd.h>
 #include <stdlib.h>
 #include <errno.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 
 #include <systemd/sd-journal.h>
 
index 41f4b588dfe9a0c36197b7bf60c1e5b8e5b8ac8d..485b301023f3a7d36e388c282a4816e18c2f9499 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 <fcntl.h>
 #include <netinet/in.h>
 #include <stdlib.h>
 #include <errno.h>