Enable hosts and resolv.conf lookups on UNIX only

Not relevant for other platforms

PUBLISHED_FROM=65b8959ee677555e2fb330c84d443e0a93d9fd1c
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2017-04-18 22:39:24 +00:00
1 parent 84907d5bc4
commit f868fc861b
2 files changed
+12 -4

No files matched your search

+8
View File
@@ -460,6 +460,14 @@ typedef struct stat cs_stat_t;
#define MG_NET_IF MG_NET_IF_SOCKET
#endif
#ifndef MG_HOSTS_FILE_NAME
#define MG_HOSTS_FILE_NAME "/etc/hosts"
#endif
#ifndef MG_RESOLV_CONF_FILE_NAME
#define MG_RESOLV_CONF_FILE_NAME "/etc/resolv.conf"
#endif
#endif /* CS_PLATFORM == CS_P_UNIX */
#endif /* CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_ */
#ifdef MG_MODULE_LINES