summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-05-26 10:37:39 -0700
committerBen Pfaff <blp@nicira.com>2010-05-26 15:27:01 -0700
commit3762274e6359f4afe04107851f4c71347fa0afa0 (patch)
tree031cffa53ea848945f2259d6708985bf3d49fd4d
parent9d82ec478d52edfddd215dff1b0659ed7508b365 (diff)
downloadopenvswitch-3762274e6359f4afe04107851f4c71347fa0afa0.tar.gz
Add some missing "#include"s.
These are required to build on FreeBSD 8.0.
-rw-r--r--lib/daemon.c2
-rw-r--r--lib/odp-util.h3
-rw-r--r--lib/socket-util.c2
-rw-r--r--lib/stream-fd.c3
-rw-r--r--lib/stream-tcp.c1
-rw-r--r--lib/stream-unix.c1
-rw-r--r--ofproto/collectors.c3
-rw-r--r--ovsdb/log.c1
8 files changed, 13 insertions, 3 deletions
diff --git a/lib/daemon.c b/lib/daemon.c
index 78f88a0f9..59628f233 100644
--- a/lib/daemon.c
+++ b/lib/daemon.c
@@ -18,8 +18,10 @@
#include "daemon.h"
#include <errno.h>
#include <fcntl.h>
+#include <signal.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/resource.h>
#include <sys/wait.h>
#include <unistd.h>
#include "command-line.h"
diff --git a/lib/odp-util.h b/lib/odp-util.h
index 6d67ec2cf..dc9a43db2 100644
--- a/lib/odp-util.h
+++ b/lib/odp-util.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009 Nicira Networks.
+ * Copyright (c) 2009, 2010 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@
#define ODP_UTIL_H 1
#include <stdbool.h>
+#include <stddef.h>
#include <stdint.h>
#include "openflow/openflow.h"
#include "openvswitch/datapath-protocol.h"
diff --git a/lib/socket-util.c b/lib/socket-util.c
index 4965b63af..3af74a48d 100644
--- a/lib/socket-util.c
+++ b/lib/socket-util.c
@@ -26,6 +26,8 @@
#include <stdlib.h>
#include <string.h>
#include <sys/resource.h>
+#include <sys/socket.h>
+#include <sys/stat.h>
#include <sys/un.h>
#include <unistd.h>
#include "fatal-signal.h"
diff --git a/lib/stream-fd.c b/lib/stream-fd.c
index 94c843409..cc897b3d9 100644
--- a/lib/stream-fd.c
+++ b/lib/stream-fd.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
#include <poll.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include "fatal-signal.h"
diff --git a/lib/stream-tcp.c b/lib/stream-tcp.c
index a9bcaeb47..2f7e798a6 100644
--- a/lib/stream-tcp.c
+++ b/lib/stream-tcp.c
@@ -23,6 +23,7 @@
#include <netinet/tcp.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/socket.h>
#include <unistd.h>
#include "packets.h"
#include "socket-util.h"
diff --git a/lib/stream-unix.c b/lib/stream-unix.c
index 33f566b37..930f54868 100644
--- a/lib/stream-unix.c
+++ b/lib/stream-unix.c
@@ -21,6 +21,7 @@
#include <inttypes.h>
#include <netdb.h>
#include <poll.h>
+#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <stdlib.h>
diff --git a/ofproto/collectors.c b/ofproto/collectors.c
index f0639836e..0b84c3ece 100644
--- a/ofproto/collectors.c
+++ b/ofproto/collectors.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
#include <errno.h>
#include <stdlib.h>
+#include <sys/socket.h>
#include <unistd.h>
#include "socket-util.h"
diff --git a/ovsdb/log.c b/ovsdb/log.c
index ccb844fdb..09b9f1f7a 100644
--- a/ovsdb/log.c
+++ b/ovsdb/log.c
@@ -22,6 +22,7 @@
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
#include <unistd.h>
#include "json.h"