1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-12-07 03:12:37 +00:00

djgpp fixes by Gisle

This commit is contained in:
Daniel Stenberg
2004-07-01 13:55:13 +00:00
parent 5c1ec168f6
commit e7293e0779
5 changed files with 22 additions and 2 deletions

View File

@ -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");