Browse Source

Define in_addr_t in windows if required

Kano 14 years ago
parent
commit
dab9b7e477
1 changed files with 4 additions and 0 deletions
  1. 4 0
      api.c

+ 4 - 0
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