Procházet zdrojové kódy

[MonoPosixHelper] Fix compilation for Android.

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.
Jonathan Pryor před 10 roky
rodič
revize
535964dc5f
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      support/sys-socket.c

+ 1 - 0
support/sys-socket.c

@@ -8,6 +8,7 @@
  */
  */
 
 
 #include <sys/socket.h>
 #include <sys/socket.h>
+#include <sys/time.h>
 #include <netinet/in.h>
 #include <netinet/in.h>
 #include <sys/un.h>
 #include <sys/un.h>