10 |
#include <string.h> |
#include <string.h> |
11 |
#include <sys/stat.h> |
#include <sys/stat.h> |
12 |
|
|
13 |
|
#ifdef NEED_DIRECT |
14 |
|
#include <direct.h> |
15 |
|
#endif |
16 |
|
|
17 |
#if !defined(_MSC_VER) && !defined(__BORLANDC__) |
#if !defined(_MSC_VER) && !defined(__BORLANDC__) |
18 |
#include <unistd.h> |
#include <unistd.h> |
19 |
#endif |
#endif |
133 |
strcpy(config.hostname, "ps2"); |
strcpy(config.hostname, "ps2"); |
134 |
#elif defined(__NETWARE__) |
#elif defined(__NETWARE__) |
135 |
strcpy(config.hostname, "netware"); |
strcpy(config.hostname, "netware"); |
136 |
|
#elif defined(__amiga__) |
137 |
|
strcpy(config.hostname, "amiga"); |
138 |
#else |
#else |
139 |
gethostname(config.hostname, 1024); |
gethostname(config.hostname, 1024); |
140 |
#endif |
#endif |
392 |
cm_log("Config", "Missing path at line %d", ln); |
cm_log("Config", "Missing path at line %d", ln); |
393 |
stop = 1; |
stop = 1; |
394 |
} else { |
} else { |
395 |
|
#ifndef WINCE |
396 |
chdir(r[1]); |
chdir(r[1]); |
397 |
|
#endif |
398 |
free(config.server_root); |
free(config.server_root); |
399 |
config.server_root = cm_strdup(r[1]); |
config.server_root = cm_strdup(r[1]); |
400 |
} |
} |