Include <sys/socket.h> in socket-util.h
authorSimon Horman <horms@verge.net.au>
Thu, 22 Sep 2011 12:24:10 +0000 (21:24 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 22 Sep 2011 16:02:54 +0000 (09:02 -0700)
This appears to be necessary to get a definition of socket_t
when compiling using the Android NDK r6b (Android API level 13).

lib/socket-util.h

index 0376006..c00ade2 100644 (file)
@@ -18,6 +18,7 @@
 #define SOCKET_UTIL_H 1
 
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
 #include <stdbool.h>
 #include "openvswitch/types.h"