Andrés García-fix to make it build with mingw
authorDaniel Stenberg <daniel@haxx.se>
Tue, 9 Mar 2004 08:38:25 +0000 (08:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Mar 2004 08:38:25 +0000 (08:38 +0000)
tests/server/sws.c

index 449efa96f94c4a1437e63d3f30f5ef2d65207192..0d86c87e6e6fd93757a182ebbabd2c1728e7e570 100644 (file)
@@ -48,7 +48,9 @@
 /* This define is "almost" required to build on HPUX 11 */
 #include <arpa/inet.h> 
 #endif
+#ifdef HAVE_NETDB_H
 #include <netdb.h>
+#endif
 
 #include "getpart.h"