diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/chrif.c | 2 | ||||
-rw-r--r-- | src/map/map.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 19002eab4..5b7dee2de 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -1414,8 +1414,8 @@ int chrif_disconnect(int fd) { void chrif_update_ip(int fd){
char ip[4];
- ShowInfo("IP Sync in progress...\n");
if (map_server_dns && resolve_hostbyname(map_server_dns, ip, NULL)) {
+ ShowInfo("IP Sync [%s] in progress...\n",map_server_dns);
WFIFOW(fd, 0) = 0x2736;
WFIFOB(fd, 2) = ip[0];
WFIFOB(fd, 3) = ip[1];
diff --git a/src/map/map.c b/src/map/map.c index 34498bd89..0aa48b914 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -6,7 +6,10 @@ #include <string.h> #include <stdarg.h> #include <math.h> + +#ifndef _WIN32 #include <unistd.h> +#endif #include "../common/core.h" #include "../common/timer.h" |