2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-17 14:28:02 +00:00

Always #include <sys/socket.h> before <net/if.h>.

FreeBSD 8.0's <net/if.h> requires <sys/socket.h> to be included first,
even though I don't see any such requirement in POSIX.
This commit is contained in:
Ben Pfaff
2010-05-26 10:05:19 -07:00
parent a36919566a
commit 9d82ec478d
7 changed files with 7 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
#include <fcntl.h>
#include <inttypes.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <net/if.h>
#include <stdlib.h>
#include <string.h>