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:
@ -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");
|
||||
|
||||
Reference in New Issue
Block a user