diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-07-01 13:55:13 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-07-01 13:55:13 +0000 |
commit | e7293e0779150f6adf32d2b1bc1599979cf9fb0e (patch) | |
tree | e2f145d85af77c71da4dc3e21cea99eff01567c4 /ares_gethostbyname.c | |
parent | 5c1ec168f69ca713fc5a2250ffffe7c8d8b5990b (diff) | |
download | c-ares-e7293e0779150f6adf32d2b1bc1599979cf9fb0e.tar.gz c-ares-e7293e0779150f6adf32d2b1bc1599979cf9fb0e.tar.bz2 c-ares-e7293e0779150f6adf32d2b1bc1599979cf9fb0e.zip |
djgpp fixes by Gisle
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r-- | ares_gethostbyname.c | 6 |
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"); |