aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2008-12-08 16:09:21 +0000
committerGisle Vanem <gvanem@broadpark.no>2008-12-08 16:09:21 +0000
commit553b4cfd0bc4f17a413da40a597ce99ceeecc22d (patch)
tree6a621232f379c1da7fffb1182226ca94b72740f9
parentedd63a792005df7c1118e3459eab6e6dbdf94754 (diff)
ares_writev() shall not be exported when using Watt-32 (has writev).
Added _USE_32BIT_TIME_T to avoid runtime warning. Applies to VC-2008+ only.
-rw-r--r--ares/Makefile.vc66
1 files changed, 4 insertions, 2 deletions
diff --git a/ares/Makefile.vc6 b/ares/Makefile.vc6
index 7b8af31c3..191142eb2 100644
--- a/ares/Makefile.vc6
+++ b/ares/Makefile.vc6
@@ -26,7 +26,7 @@ OBJ_DIR = VC6_obj
DEF_FILE = cares.def
!if "$(USE_WATT32)" == "1"
-CFLAGS = $(CFLAGS) -UWIN32 -DWATT32 -I$(WATT_ROOT)\inc
+CFLAGS = $(CFLAGS) -UWIN32 -DWATT32 -D_USE_32BIT_TIME_T -I$(WATT_ROOT)\inc
EX_LIBS = $(WATT_ROOT)\lib\wattcpvc_imp.lib
!else
@@ -124,9 +124,11 @@ $(DEF_FILE): $(OBJECTS) Makefile.VC6
@echo ares_inet_net_pton >> $@
@echo ares_inet_ntop >> $@
@echo ares_inet_pton >> $@
- @echo ares_writev >> $@
@echo ares_getnameinfo >> $@
@echo ares_parse_aaaa_reply >> $@
+!if "$(USE_WATT32)" == "0"
+ @echo ares_writev >> $@
+!endif
ahost.exe: $(OBJ_DIR) $(OBJ_DIR)\ahost.obj $(OBJ_DIR)\ares_getopt.obj cares_imp.lib
link $(LDFLAGS) -out:$@ $(OBJ_DIR)\ahost.obj $(OBJ_DIR)\ares_getopt.obj cares_imp.lib $(EX_LIBS)