Changeset 359 in Main for trunk/Server
- Timestamp:
- Oct 16, 2024, 11:34:51 PM (4 weeks ago)
- Location:
- trunk/Server
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/config.c
r349 r359 15 15 #endif 16 16 17 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) )17 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) 18 18 #ifdef USE_WINSOCK1 19 19 #include <winsock.h> -
trunk/Server/http.c
r349 r359 22 22 #endif 23 23 24 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) )24 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) 25 25 #ifdef USE_WINSOCK1 26 26 #include <winsock.h> -
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 -
trunk/Server/module.c
r349 r359 18 18 extern struct tw_config config; 19 19 20 #if defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(__NeXT__) 20 #if defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(__NeXT__) || defined(__DOS__) 21 21 void* tw_module_load(const char* path) { return NULL; } 22 22 -
trunk/Server/server.c
r349 r359 48 48 #endif 49 49 50 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) )50 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) 51 51 #ifndef NO_GETNAMEINFO 52 52 #include <ws2tcpip.h> … … 71 71 #include "strptime.h" 72 72 typedef int socklen_t; 73 #elif defined(__DOS__) 74 #include <netinet/tcp.h> 75 #include <netinet/in.h> 76 #include <arpa/inet.h> 77 #include <sys/select.h> 78 79 #include "strptime.h" 73 80 #else 74 81 #ifdef USE_POLL … … 167 174 int tw_server_init(void) { 168 175 int i; 169 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) )176 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) 170 177 WSADATA wsa; 171 178 #ifdef USE_WINSOCK1 … … 965 972 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 966 973 #ifdef __NETWARE__ 974 #elif defined(__DOS__) 967 975 #else 968 976 _endthread(); … … 987 995 #elif defined(__NETWARE__) 988 996 int thread; 997 #elif defined(__DOS__) 989 998 #else 990 999 HANDLE handle; … … 1075 1084 _beginthread(tw_server_pass, 0, 0, e); 1076 1085 #elif defined(__NETWARE__) 1086 tw_server_pass(e); 1087 #elif defined(__DOS__) 1077 1088 tw_server_pass(e); 1078 1089 #else -
trunk/Server/strptime.c
r344 r359 470 470 continue; 471 471 } 472 #if defined(_WIN32) || defined(__OS2__) || defined(__NeXT__) 472 #if defined(_WIN32) || defined(__OS2__) || defined(__NeXT__) || defined(__DOS__) 473 473 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) 474 474 if (1) -
trunk/Server/strptime.h
r341 r359 8 8 #include <time.h> 9 9 10 #if defined(_WIN32) || defined(_PSP) || defined(__ps2sdk__) || defined(__OS2__) || defined(__NETWARE__) || defined(__NeXT__) 10 #if defined(_WIN32) || defined(_PSP) || defined(__ps2sdk__) || defined(__OS2__) || defined(__NETWARE__) || defined(__NeXT__) || defined(__DOS__) 11 11 char* strptime(const char *buf, const char *fmt, struct tm *tm); 12 12 #endif -
trunk/Server/tw_config.h
r349 r359 18 18 #endif 19 19 20 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) )20 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__OS2__) && !defined(__NETWARE__) && !defined(__DOS__)) 21 21 #ifdef USE_WINSOCK1 22 22 #include <winsock.h> -
trunk/Server/version.c
r325 r359 22 22 #elif defined(__NETWARE__) 23 23 "NetWare" 24 #elif defined(__DOS__) 25 "DOS" 24 26 #elif defined(__MINGW32__) 25 27 "Windows-MinGW32"
Note:
See TracChangeset
for help on using the changeset viewer.