diff options
author | Ben Pfaff <blp@nicira.com> | 2010-05-26 10:05:19 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-05-26 15:27:01 -0700 |
commit | 9d82ec478d52edfddd215dff1b0659ed7508b365 (patch) | |
tree | b32997aedde241f854fef550d9289166c5d2ae73 | |
parent | a36919566a348427d28dce06b607a3dcfeb64822 (diff) | |
download | openvswitch-9d82ec478d52edfddd215dff1b0659ed7508b365.tar.gz |
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.
-rw-r--r-- | lib/dpif-netdev.c | 1 | ||||
-rw-r--r-- | ofproto/discovery.c | 1 | ||||
-rw-r--r-- | ofproto/in-band.c | 1 | ||||
-rw-r--r-- | ofproto/ofproto.c | 1 | ||||
-rw-r--r-- | utilities/ovs-dpctl.c | 1 | ||||
-rw-r--r-- | utilities/ovs-ofctl.c | 1 | ||||
-rw-r--r-- | vswitchd/bridge.c | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index 2f4463e6d..c4cc6e983 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -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> diff --git a/ofproto/discovery.c b/ofproto/discovery.c index 2044ea5e4..b875890af 100644 --- a/ofproto/discovery.c +++ b/ofproto/discovery.c @@ -18,6 +18,7 @@ #include "discovery.h" #include <errno.h> #include <inttypes.h> +#include <sys/socket.h> #include <net/if.h> #include <regex.h> #include <stdlib.h> diff --git a/ofproto/in-band.c b/ofproto/in-band.c index e52a0a056..884cf1d26 100644 --- a/ofproto/in-band.c +++ b/ofproto/in-band.c @@ -19,6 +19,7 @@ #include <arpa/inet.h> #include <errno.h> #include <inttypes.h> +#include <sys/socket.h> #include <net/if.h> #include <string.h> #include <stdlib.h> diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 101094835..069d5e518 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -19,6 +19,7 @@ #include "ofproto.h" #include <errno.h> #include <inttypes.h> +#include <sys/socket.h> #include <net/if.h> #include <netinet/in.h> #include <stdbool.h> diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c index ecfb3069a..df76e86e8 100644 --- a/utilities/ovs-dpctl.c +++ b/utilities/ovs-dpctl.c @@ -19,6 +19,7 @@ #include <errno.h> #include <getopt.h> #include <inttypes.h> +#include <sys/socket.h> #include <net/if.h> #include <netinet/in.h> #include <signal.h> diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 1a0c9363e..96d64b3bb 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -19,6 +19,7 @@ #include <errno.h> #include <getopt.h> #include <inttypes.h> +#include <sys/socket.h> #include <net/if.h> #include <netinet/in.h> #include <signal.h> diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 04898f88d..8314c5392 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -20,6 +20,7 @@ #include <arpa/inet.h> #include <ctype.h> #include <inttypes.h> +#include <sys/socket.h> #include <net/if.h> #include <openflow/openflow.h> #include <signal.h> |