Changeset 359 in Main for trunk/Server/main.c
- Timestamp:
- Oct 16, 2024, 11:34:51 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/main.c
r349 r359 28 28 #endif 29 29 30 #ifdef __DOS__ 31 #include <tcp.h> 32 #endif 33 30 34 #include <cm_log.h> 31 35 #include <cm_string.h> … … 35 39 #include "tw_version.h" 36 40 37 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) )41 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) 38 42 #include <windows.h> 39 43 #elif defined(__NETWARE__) … … 94 98 int startup(int argc, char** argv); 95 99 96 #if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) ) || defined(__BORLANDC__)100 #if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__) 97 101 char* get_registry(const char* main, const char* sub) { 98 102 DWORD bufsize = 512; … … 751 755 int i; 752 756 char* r; 753 #if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) ) || defined(__BORLANDC__)757 #if defined(__MINGW32__) || defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) || defined(__BORLANDC__) 754 758 char* confpath = cm_strdup(PREFIX "/etc/tewi.conf"); 755 759 char* regpath = get_registry("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Tewi HTTPd", "InstallDir"); … … 824 828 return 1; 825 829 } 830 #ifdef __DOS__ 831 sock_init(); 832 #endif 826 833 if(tw_server_init() != 0) { 827 834 STDERR_LOG("Could not initialize the server\n"); … … 835 842 signal(SIGCHLD, SIG_IGN); 836 843 signal(SIGPIPE, SIG_IGN); 837 #elif !defined(BUILD_GUI) && !defined(__OS2__) && !defined(__NETWARE__) 844 #elif !defined(BUILD_GUI) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__) 838 845 SetConsoleTitle(tw_server); 839 846 #endif
Note:
See TracChangeset
for help on using the changeset viewer.