aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_gethostbyaddr.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-01 13:55:13 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-01 13:55:13 +0000
commit60af1cbcc2a8c8782e8ec7c73995d009effea742 (patch)
tree3e366f110ff6796217e48ed45a3f09f5fc6d0b3e /ares/ares_gethostbyaddr.c
parent8952ef933b89e59c3729694bac971e9f4aa3db30 (diff)
djgpp fixes by Gisle
Diffstat (limited to 'ares/ares_gethostbyaddr.c')
-rw-r--r--ares/ares_gethostbyaddr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c
index 7e91dce19..5652145d9 100644
--- a/ares/ares_gethostbyaddr.c
+++ b/ares/ares_gethostbyaddr.c
@@ -151,6 +151,12 @@ static int file_lookup(struct in_addr *addr, 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");