]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: remove redundant and incorrect sys/fcntl.h include
authorTimo Teräs <timo.teras@iki.fi>
Thu, 24 Apr 2014 06:40:33 +0000 (06:40 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 3 Jun 2014 13:31:32 +0000 (15:31 +0200)
POSIX defines <fcntl.h>, <sys/fcntl.h> is the same thing. However,
it should not be used as it's existence can depend on C-library
implementation. E.g. musl gives warning if <sys/fcntl.h> is used.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/zebra.h

index 780e12eb37bf9124c64da6fc6f8a38f29498294d..3715b342ebf4c903a7c648024e28efa270d95097 100644 (file)
@@ -51,7 +51,6 @@ typedef int socklen_t;
 #ifdef HAVE_STROPTS_H
 #include <stropts.h>
 #endif /* HAVE_STROPTS_H */
-#include <sys/fcntl.h>
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
 #endif /* HAVE_SYS_SELECT_H */