diff options
author | Guenter Knauf <lists@gknw.net> | 2013-04-11 14:05:08 +0200 |
---|---|---|
committer | Guenter Knauf <lists@gknw.net> | 2013-04-11 14:05:08 +0200 |
commit | 96ffe645fd2494f14780f7c105fcfeeb8ca7d94f (patch) | |
tree | 3de26ca944950c64c0daedb5cbe3f9cbd38df57a /lib | |
parent | c86ea58304c2d888accfbaff6961bee14b3cc3d9 (diff) |
Enabled MinGW sync resolver builds.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.m32 | 17 | ||||
-rw-r--r-- | lib/config-win32.h | 7 |
2 files changed, 15 insertions, 9 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index bb01bbad3..3df923a72 100644 --- a/lib/Makefile.m32 +++ b/lib/Makefile.m32 @@ -106,6 +106,9 @@ endif ifeq ($(findstring -ares,$(CFG)),-ares) ARES = 1 endif +ifeq ($(findstring -sync,$(CFG)),-sync) +SYNC = 1 +endif ifeq ($(findstring -rtmp,$(CFG)),-rtmp) RTMP = 1 SSL = 1 @@ -151,11 +154,15 @@ endif INCLUDES = -I. -I../include CFLAGS += -DBUILDING_LIBCURL -ifdef ARES - INCLUDES += -I"$(LIBCARES_PATH)" - CFLAGS += -DUSE_ARES -DCARES_STATICLIB - DLL_LIBS += -L"$(LIBCARES_PATH)" -lcares - libcurl_dll_DEPENDENCIES = $(LIBCARES_PATH)/libcares.a +ifdef SYNC + CFLAGS += -DUSE_SYNC_DNS +else + ifdef ARES + INCLUDES += -I"$(LIBCARES_PATH)" + CFLAGS += -DUSE_ARES -DCARES_STATICLIB + DLL_LIBS += -L"$(LIBCARES_PATH)" -lcares + libcurl_dll_DEPENDENCIES = $(LIBCARES_PATH)/libcares.a + endif endif ifdef RTMP INCLUDES += -I"$(LIBRTMP_PATH)" diff --git a/lib/config-win32.h b/lib/config-win32.h index c1e69541e..9ce6ad298 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -611,11 +611,10 @@ /* Define to enable c-ares asynchronous DNS lookups. */ /* #define USE_ARES 1 */ -/* Define to enable threaded asynchronous DNS lookups. */ -#if !defined(USE_ARES) && !defined(USE_THREADS_WIN32) +/* Default define to enable threaded asynchronous DNS lookups. */ +#if !defined(USE_SYNC_DNS) && !defined(USE_ARES) && \ + !defined(USE_THREADS_WIN32) # define USE_THREADS_WIN32 1 -#elif defined(USE_THREADS_WIN32) && USE_THREADS_WIN32 == 0 -# undef USE_THREADS_WIN32 #endif #if defined(USE_ARES) && defined(USE_THREADS_WIN32) |