Include <sys/time.h> in socket-util.h
authorSimon Horman <horms@verge.net.au>
Thu, 22 Sep 2011 12:24:11 +0000 (21:24 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 22 Sep 2011 16:02:57 +0000 (09:02 -0700)
sys/time.h appears to be required for a definition of timespec on Android.

Observed when compiling using the Android NDK r6b (Android API level 13).

lib/socket-util.h

index c00ade2..1059139 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <sys/time.h>
 #include <netinet/in.h>
 #include <stdbool.h>
 #include "openvswitch/types.h"