summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-02-02 00:14:59 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-02-02 00:14:59 -0500
commit31ffc141c39f49ab9d1037f6d62bbde938f9a9f3 (patch)
tree426ee4f082475c18c87d0a8ea7ec4f9b2eb44a0f /src/netops.c
parent38691ffc67fad350e5d71dbe53d25514089b61cf (diff)
downloadlibgit2-31ffc141c39f49ab9d1037f6d62bbde938f9a9f3.tar.gz
Fix the build on Emscripten
struct timeval is used in this file, which requires <sys/time.h> to be included.
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netops.c b/src/netops.c
index 73375d725..0f85eaecd 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