diff options
Diffstat (limited to 'ares')
-rw-r--r-- | ares/setup.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ares/setup.h b/ares/setup.h index 70af3be3c..3b97e273e 100644 --- a/ares/setup.h +++ b/ares/setup.h @@ -70,6 +70,22 @@ #endif /* + * Define USE_WINSOCK to 2 if we have and use WINSOCK2 API, else + * define USE_WINSOCK to 1 if we have and use WINSOCK API, else + * undefine USE_WINSOCK. + */ + +#undef USE_WINSOCK + +#ifdef HAVE_WINSOCK2_H +# define USE_WINSOCK 2 +#else +# ifdef HAVE_WINSOCK_H +# define USE_WINSOCK 1 +# endif +#endif + +/* * Work-arounds for systems without configure support */ |