diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/adig.c src/c-ares-1.4.0/adig.c --- origsrc/c-ares-1.4.0/adig.c 2007-04-24 04:17:12.000000000 -0700 +++ src/c-ares-1.4.0/adig.c 2007-08-13 12:36:56.453125000 -0700 @@ -26,7 +26,12 @@ #include #include #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_UNISTD_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_expand_name.c src/c-ares-1.4.0/ares_expand_name.c --- origsrc/c-ares-1.4.0/ares_expand_name.c 2007-03-14 15:22:25.000000000 -0800 +++ src/c-ares-1.4.0/ares_expand_name.c 2007-08-13 12:36:56.468750000 -0700 @@ -21,7 +21,12 @@ #include "nameser.h" #else #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_expand_string.c src/c-ares-1.4.0/ares_expand_string.c --- origsrc/c-ares-1.4.0/ares_expand_string.c 2007-03-14 15:22:25.000000000 -0800 +++ src/c-ares-1.4.0/ares_expand_string.c 2007-08-13 12:36:56.468750000 -0700 @@ -21,8 +21,13 @@ #include "nameser.h" #else #include +#ifdef HAVE_ARPA_NAMESER_H #include #endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif +#endif #include #include diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_gethostbyaddr.c src/c-ares-1.4.0/ares_gethostbyaddr.c --- origsrc/c-ares-1.4.0/ares_gethostbyaddr.c 2007-03-14 15:22:25.000000000 -0800 +++ src/c-ares-1.4.0/ares_gethostbyaddr.c 2007-08-13 12:36:56.484375000 -0700 @@ -22,7 +22,12 @@ #include #include #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_gethostbyname.c src/c-ares-1.4.0/ares_gethostbyname.c --- origsrc/c-ares-1.4.0/ares_gethostbyname.c 2007-06-08 01:43:14.000000000 -0700 +++ src/c-ares-1.4.0/ares_gethostbyname.c 2007-08-13 12:36:56.484375000 -0700 @@ -27,6 +27,9 @@ #ifdef HAVE_ARPA_NAMESER_H #include #endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_getnameinfo.c src/c-ares-1.4.0/ares_getnameinfo.c --- origsrc/c-ares-1.4.0/ares_getnameinfo.c 2007-03-14 15:22:26.000000000 -0800 +++ src/c-ares-1.4.0/ares_getnameinfo.c 2007-08-13 12:36:56.500000000 -0700 @@ -23,7 +23,12 @@ #include #include #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_init.c src/c-ares-1.4.0/ares_init.c --- origsrc/c-ares-1.4.0/ares_init.c 2007-06-04 00:36:31.000000000 -0700 +++ src/c-ares-1.4.0/ares_init.c 2007-08-13 12:36:56.500000000 -0700 @@ -35,7 +35,12 @@ #include #include #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_mkquery.c src/c-ares-1.4.0/ares_mkquery.c --- origsrc/c-ares-1.4.0/ares_mkquery.c 2007-03-14 15:22:26.000000000 -0800 +++ src/c-ares-1.4.0/ares_mkquery.c 2007-08-13 12:36:56.515625000 -0700 @@ -21,7 +21,12 @@ #include "nameser.h" #else #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_parse_a_reply.c src/c-ares-1.4.0/ares_parse_a_reply.c --- origsrc/c-ares-1.4.0/ares_parse_a_reply.c 2007-03-14 15:22:26.000000000 -0800 +++ src/c-ares-1.4.0/ares_parse_a_reply.c 2007-08-13 12:36:56.515625000 -0700 @@ -24,7 +24,12 @@ #include #include #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_parse_aaaa_reply.c src/c-ares-1.4.0/ares_parse_aaaa_reply.c --- origsrc/c-ares-1.4.0/ares_parse_aaaa_reply.c 2007-03-14 15:22:26.000000000 -0800 +++ src/c-ares-1.4.0/ares_parse_aaaa_reply.c 2007-08-13 12:36:56.531250000 -0700 @@ -27,6 +27,9 @@ #ifdef HAVE_ARPA_NAMESER_H #include #endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_parse_ns_reply.c src/c-ares-1.4.0/ares_parse_ns_reply.c --- origsrc/c-ares-1.4.0/ares_parse_ns_reply.c 2007-02-25 20:33:19.000000000 -0800 +++ src/c-ares-1.4.0/ares_parse_ns_reply.c 2007-08-13 12:36:56.531250000 -0700 @@ -27,7 +27,13 @@ #include #include #include +#include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_parse_ptr_reply.c src/c-ares-1.4.0/ares_parse_ptr_reply.c --- origsrc/c-ares-1.4.0/ares_parse_ptr_reply.c 2007-03-14 15:22:26.000000000 -0800 +++ src/c-ares-1.4.0/ares_parse_ptr_reply.c 2007-08-13 12:36:56.546875000 -0700 @@ -23,7 +23,12 @@ #include #include #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_process.c src/c-ares-1.4.0/ares_process.c --- origsrc/c-ares-1.4.0/ares_process.c 2007-06-04 00:36:31.000000000 -0700 +++ src/c-ares-1.4.0/ares_process.c 2007-08-13 12:36:56.562500000 -0700 @@ -27,7 +27,12 @@ #endif #include #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_query.c src/c-ares-1.4.0/ares_query.c --- origsrc/c-ares-1.4.0/ares_query.c 2007-06-08 01:43:14.000000000 -0700 +++ src/c-ares-1.4.0/ares_query.c 2007-08-13 12:36:56.562500000 -0700 @@ -21,7 +21,12 @@ #include "nameser.h" #else #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/ares_send.c src/c-ares-1.4.0/ares_send.c --- origsrc/c-ares-1.4.0/ares_send.c 2007-03-14 15:22:27.000000000 -0800 +++ src/c-ares-1.4.0/ares_send.c 2007-08-13 12:36:56.562500000 -0700 @@ -21,7 +21,12 @@ #include "nameser.h" #else #include +#ifdef HAVE_ARPA_NAMESER_H #include +#endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/inet_net_pton.c src/c-ares-1.4.0/inet_net_pton.c --- origsrc/c-ares-1.4.0/inet_net_pton.c 2007-03-14 15:22:27.000000000 -0800 +++ src/c-ares-1.4.0/inet_net_pton.c 2007-08-13 12:36:56.578125000 -0700 @@ -32,6 +32,9 @@ #ifdef HAVE_ARPA_NAMESER_H #include #endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_INET_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/inet_ntop.c src/c-ares-1.4.0/inet_ntop.c --- origsrc/c-ares-1.4.0/inet_ntop.c 2007-03-14 15:22:27.000000000 -0800 +++ src/c-ares-1.4.0/inet_ntop.c 2007-08-13 12:36:56.578125000 -0700 @@ -30,6 +30,9 @@ #ifdef HAVE_ARPA_NAMESER_H #include #endif +#ifdef __CYGWIN__ +#include "nameser.h" +#endif #ifdef HAVE_ARPA_INET_H #include #endif diff -urN -x CYGWIN-PATCHES -x 'aclocal.m4*' -x ltmain.sh -x 'config.*' -x depcomp -x install-sh -x missing -x mkinstalldirs -x autom4te.cache -x '*compile' -x Makefile.in.in -x 'intltool*.in' -x 'xml-i18n-*.in' -x '*.pyc' -x '*.mo' -x '*.gmo' -x ABOUT-NLS -x Makevars.template -x COPYING -x INSTALL -x mdate-sh -x '*.orig' -x '*.rej' -x '*~' -x '*.temp' -x texinfo.tex -x ylwrap -x Makefile.in -x makefile.in -x configure -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x intltool.m4 -x omf.make -x xmldocs.make origsrc/c-ares-1.4.0/nameser.h src/c-ares-1.4.0/nameser.h --- origsrc/c-ares-1.4.0/nameser.h 2007-03-14 15:22:28.000000000 -0800 +++ src/c-ares-1.4.0/nameser.h 2007-08-13 12:36:56.593750000 -0700 @@ -6,12 +6,6 @@ /* Windows-only header file provided by liren@vivisimo.com to make his Windows port build */ -#ifndef NETWARE -#ifndef __CYGWIN__ -#include -#endif -#include /* for the _getpid() proto */ -#endif /* !NETWARE */ #include #ifndef NETWARE @@ -19,24 +13,33 @@ #define MAXHOSTNAMELEN 256 /* Structure for scatter/gather I/O. */ + +#ifndef __CYGWIN__ + +#include +#include /* for the _getpid() proto */ + struct iovec { void *iov_base; /* Pointer to data. */ size_t iov_len; /* Length of data. */ }; -#ifndef __WATCOMC__ -#define getpid() _getpid() -#endif - int ares_writev (SOCKET s, const struct iovec *vector, size_t count); #define writev(s,vect,count) ares_writev(s,vect,count) +#ifndef __WATCOMC__ +#define getpid() _getpid() +#endif /* !__WATCOMC__ */ + +#ifndef __MINGW32__ struct timezone { int dummy; }; +#endif /* !__MINGW32__ */ int ares_gettimeofday(struct timeval *tv, struct timezone *tz); #define gettimeofday(tv,tz) ares_gettimeofday(tv,tz) +#endif /* !__CYGWIN__ */ #endif /* !NETWARE */ #define NS_CMPRSFLGS 0xc0