[PATCH] Replace sys/fcntl.h by POSIX compilant fcntl.h

Fritz Grimpen fritz at grimpen.net
Thu Jul 18 23:46:04 CEST 2013


Hi

I tried to compile BIRD using musl libc, but it failed with a
preprocessor message, that sys/fcntl.h was not found. See also:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html

Regards
Fritz

---
 sysdep/unix/io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 4fee10e..fcf5dd1 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -17,10 +17,10 @@
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/fcntl.h>
 #include <sys/uio.h>
 #include <sys/un.h>
 #include <unistd.h>
+#include <fcntl.h>
 #include <errno.h>
 #include <netinet/in.h>
 #include <netinet/icmp6.h>
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20130718/c8ab0593/attachment.asc>


More information about the Bird-users mailing list