* srv.h, srv.c: Include windows.h with MINGW32.
authorDavid Shaw <dshaw@jabberwocky.com>
Sat, 31 May 2003 03:15:50 +0000 (03:15 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Sat, 31 May 2003 03:15:50 +0000 (03:15 +0000)
util/ChangeLog
util/srv.c
util/srv.h

index e968256..bd83acc 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-30  David Shaw  <dshaw@jabberwocky.com>
+
+       * srv.h, srv.c: Include windows.h with MINGW32.
+
 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
 
        * argparse.c, dotlock.c, fileutil.c, iobuf.c, miscutil.c,
index 35f5b71..e73d3f8 100644 (file)
 
 #include <config.h>
 #ifdef USE_DNS_SRV
-#include <sys/types.h>
+#ifdef __MINGW32__
+#include <windows.h>
+#else
 #include <netinet/in.h>
 #include <arpa/nameser.h>
 #include <resolv.h>
+#endif
+#include <sys/types.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
index a6766be..de239b6 100644 (file)
 #ifndef _SRV_H_
 #define _SRV_H_
 
+#ifdef __MINGW32__
+#include <windows.h>
+#else
 #include <netinet/in.h>
 #include <arpa/nameser.h>
 #include <resolv.h>
+#endif
 
 #ifndef MAXDNAME
 #define MAXDNAME 1025