[MonoPosixHelper] Fix compilation for Android.
authorJonathan Pryor <jonpryor@vt.edu>
Thu, 27 Aug 2015 20:05:41 +0000 (16:05 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Thu, 27 Aug 2015 20:07:43 +0000 (16:07 -0400)
The Android NDK decalres the `struct timeval` struct in <sys/time.h>.
Update sys-socket.c to #include <sys/time.h> to fix compilation
with the Android NDK.

support/sys-socket.c

index e6da720f21c9eba557ecdb331b8535fbb1a0845f..188df56a18e25e6c978b73f8a4044a4fdaaddbc3 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <sys/socket.h>
+#include <sys/time.h>
 #include <netinet/in.h>
 #include <sys/un.h>