Commit 31ffc141c39f49ab9d1037f6d62bbde938f9a9f3

Ehsan Akhgari 2012-02-02T00:14:59

Fix the build on Emscripten struct timeval is used in this file, which requires <sys/time.h> to be included.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/netops.c b/src/netops.c
index 73375d7..0f85eae 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -8,6 +8,7 @@
 #	include <sys/types.h>
 #	include <sys/socket.h>
 #	include <sys/select.h>
+#	include <sys/time.h>
 #	include <netdb.h>
 #else
 #	define _WIN32_WINNT 0x0501