100 |
|
|
101 |
int startup(int argc, char** argv); |
int startup(int argc, char** argv); |
102 |
|
|
103 |
#if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__) |
#if defined(__MINGW32__) || (defined(_MSC_VER) && !defined(WINCE)) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__) |
104 |
char* get_registry(const char* main, const char* sub) { |
char* get_registry(const char* main, const char* sub) { |
105 |
DWORD bufsize = 512; |
DWORD bufsize = 512; |
106 |
HKEY handle; |
HKEY handle; |
761 |
int startup(int argc, char** argv) { |
int startup(int argc, char** argv) { |
762 |
int i; |
int i; |
763 |
char* r; |
char* r; |
764 |
#if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__) |
#if defined(__MINGW32__) || (defined(_MSC_VER) && !defined(WINCE)) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__) |
765 |
char* confpath = cm_strdup(PREFIX "/etc/tewi.conf"); |
char* confpath = cm_strdup(PREFIX "/etc/tewi.conf"); |
766 |
char* regpath = get_registry("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Tewi HTTPd", "InstallDir"); |
char* regpath = get_registry("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Tewi HTTPd", "InstallDir"); |
767 |
if(regpath != NULL) { |
if(regpath != NULL) { |
848 |
#if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__) |
#if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__) |
849 |
signal(SIGCHLD, SIG_IGN); |
signal(SIGCHLD, SIG_IGN); |
850 |
signal(SIGPIPE, SIG_IGN); |
signal(SIGPIPE, SIG_IGN); |
851 |
#elif !defined(BUILD_GUI) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__) |
#elif !defined(BUILD_GUI) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__) && !defined(WINCE) |
852 |
SetConsoleTitle(tw_server); |
SetConsoleTitle(tw_server); |
853 |
#endif |
#endif |
854 |
return -1; |
return -1; |