Include <fcntl.h> instead of <sys/fcntl.h>

<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
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-04-13 21:02:03 -04:00
parent d3b6d0c21e
commit abad76cc4c
2 changed files with 2 additions and 6 deletions

View 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>

View file

@ -32,11 +32,7 @@
#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>