summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-01 13:55:13 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2004-07-01 13:55:13 (GMT)
commite7293e0779150f6adf32d2b1bc1599979cf9fb0e (patch)
treee2f145d85af77c71da4dc3e21cea99eff01567c4 /ares_gethostbyname.c
parent5c1ec168f69ca713fc5a2250ffffe7c8d8b5990b (diff)
downloadc-ares-e7293e0779150f6adf32d2b1bc1599979cf9fb0e.zip
c-ares-e7293e0779150f6adf32d2b1bc1599979cf9fb0e.tar.gz
c-ares-e7293e0779150f6adf32d2b1bc1599979cf9fb0e.tar.bz2
djgpp fixes by Gisle
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index accf962..0d06dfe 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -224,6 +224,12 @@ static int file_lookup(const char *name, struct hostent **host)
strcat(PATH_HOSTS, PATH_HOSTS_9X);
}
+#elif defined(WATT32)
+ extern const char *_w32_GetHostsFile (void);
+ const char *PATH_HOSTS = _w32_GetHostsFile();
+
+ if (!PATH_HOSTS)
+ return ARES_ENOTFOUND;
#endif
fp = fopen(PATH_HOSTS, "r");