Commit dab9b7e4778d8738e32a2555a265a6001d76fcd4

Kano 2012-02-08T19:55:29

Define in_addr_t in windows if required

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/api.c b/api.c
index 6682873..3510d5b 100644
--- a/api.c
+++ b/api.c
@@ -125,6 +125,10 @@
 	#ifndef SHUT_RDWR
 	#define SHUT_RDWR SD_BOTH
 	#endif
+
+	#ifndef in_addr_t
+	#define in_addr_t uint32_t
+	#endif
 #endif
 
 // Big enough for largest API request