diff options
author | David Shaw <[email protected]> | 2003-05-31 03:15:50 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-05-31 03:15:50 +0000 |
commit | 4d297a7ff1bcd55be2d6bb1d648b1f4ed0f355f3 (patch) | |
tree | dfd08f9bd942207ad3eb5de08bdd5fbe8b1b6fe7 | |
parent | * configure.ac: Put wsock32 in NETLIBS. Put zlib in ZLIBS. Put dl in (diff) | |
download | gnupg-4d297a7ff1bcd55be2d6bb1d648b1f4ed0f355f3.tar.gz gnupg-4d297a7ff1bcd55be2d6bb1d648b1f4ed0f355f3.zip |
* srv.h, srv.c: Include windows.h with MINGW32.
-rw-r--r-- | util/ChangeLog | 4 | ||||
-rw-r--r-- | util/srv.c | 6 | ||||
-rw-r--r-- | util/srv.h | 4 |
3 files changed, 13 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index e968256da..bd83acc10 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,7 @@ +2003-05-30 David Shaw <[email protected]> + + * srv.h, srv.c: Include windows.h with MINGW32. + 2003-05-24 David Shaw <[email protected]> * argparse.c, dotlock.c, fileutil.c, iobuf.c, miscutil.c, diff --git a/util/srv.c b/util/srv.c index 35f5b7109..e73d3f85c 100644 --- a/util/srv.c +++ b/util/srv.c @@ -20,10 +20,14 @@ #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> diff --git a/util/srv.h b/util/srv.h index a6766becd..de239b6bc 100644 --- a/util/srv.h +++ b/util/srv.h @@ -21,9 +21,13 @@ #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 |