- Timestamp:
- Nov 3, 2024, 7:39:59 PM (12 days ago)
- Location:
- trunk
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/README.tmpl
r401 r402 63 63 PlayStation 2 Does not boot 64 64 Windows NT (MIPS) Cannot read file properly 65 Amiga Cannot connect -
trunk/Server/config.c
r400 r402 134 134 #elif defined(__NETWARE__) 135 135 strcpy(config.hostname, "netware"); 136 #elif defined(__amiga__) 137 strcpy(config.hostname, "amiga"); 136 138 #else 137 139 gethostname(config.hostname, 1024); -
trunk/Server/module.c
r366 r402 18 18 extern struct tw_config config; 19 19 20 #if defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(__NeXT__) || defined(__DOS__) 20 #if defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(__NeXT__) || defined(__DOS__) || defined(__amiga__) 21 21 void* tw_module_load(const char* path) { return NULL; } 22 22 -
trunk/Server/server.c
r401 r402 15 15 #include "tw_module.h" 16 16 #include "tw_version.h" 17 18 #ifdef __amiga__ 19 #include <pthread.h> 20 #endif 17 21 18 22 #if !defined(_MSC_VER) && !defined(__BORLANDC__) … … 108 112 #endif 109 113 110 #if defined(_PSP) || defined(__ps2sdk__) || defined(__bsdi__) 114 #if defined(_PSP) || defined(__ps2sdk__) || defined(__bsdi__) || defined(__amiga__) 111 115 #include "strptime.h" 112 116 #endif … … 516 520 #define NO_RETURN_THREAD 517 521 void tw_server_pass(void* ptr) { 522 #elif defined(__amiga__) 523 void* tw_server_pass(void* ptr) { 518 524 #elif defined(__HAIKU__) 519 525 int32_t tw_server_pass(void* ptr) { … … 521 527 int tw_server_pass(void* ptr) { 522 528 #endif 523 #if defined(__HAIKU__) || defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 529 #if defined(__HAIKU__) || defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__amiga__) 524 530 #define FREE_PTR 525 531 int sock = ((struct pass_entry*)ptr)->sock; … … 622 628 struct tm* btm; 623 629 strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm); 624 #if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__) || defined(__bsdi__) 630 #if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__) || defined(__bsdi__) || defined(__amiga__) 625 631 t = 0; 626 632 btm = localtime(&t); … … 1056 1062 #if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(__BORLANDC__) && !defined(__WATCOMC__) 1057 1063 if(errno == EINTR) continue; 1058 cm_log("Server", "Select failure: %s", strerror(errno));1064 cm_log("Server", "Select/poll failure: %s", strerror(errno)); 1059 1065 #endif 1060 1066 break; … … 1079 1085 socklen_t clen = sizeof(claddr); 1080 1086 int sock = accept(sockets[i], (struct sockaddr*)&claddr, &clen); 1081 #if defined(__MINGW32__) || defined(__HAIKU__) || defined(_PSP) || defined(__PPU__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) 1087 #if defined(__MINGW32__) || defined(__HAIKU__) || defined(_PSP) || defined(__PPU__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__amiga__) 1088 #ifdef __amiga__ 1089 pthread_t thrt; 1090 #endif 1082 1091 int j; 1083 1092 struct pass_entry* e = malloc(sizeof(*e)); … … 1104 1113 #elif defined(_PSP) || defined(__PPU__) 1105 1114 tw_server_pass(e); 1115 #elif defined(__amiga__) 1116 pthread_create(&thrt, NULL, tw_server_pass, e); 1106 1117 #elif defined(__HAIKU__) 1107 1118 for(j = 0; j < sizeof(threads) / sizeof(threads[0]); j++) { -
trunk/Server/strptime.c
r382 r402 36 36 //__RCSID("$NetBSD: strptime.c,v 1.62 2017/08/24 01:01:09 ginsbach Exp $"); 37 37 38 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) || defined(__bsdi__) 38 #if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) || defined(__bsdi__) || defined(__amiga__) 39 39 40 40 #include <stdlib.h> … … 116 116 #endif 117 117 118 #if def __WATCOMC__118 #if defined(__WATCOMC__) 119 119 #define _tzset tzset 120 120 #endif … … 470 470 continue; 471 471 } 472 #if defined(_WIN32) || defined(__OS2__) || defined(__NeXT__) || defined(__DOS__) 473 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) 472 #if defined(_WIN32) || defined(__OS2__) || defined(__NeXT__) || defined(__DOS__) || defined(__amiga__) 473 #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) || defined(__amiga__) 474 474 if (1) 475 475 #else … … 561 561 #ifdef _WIN32 562 562 _tzset(); 563 #elif defined(__amiga__) 563 564 #else 564 565 tzset(); -
trunk/Server/strptime.h
r380 r402 8 8 #include <time.h> 9 9 10 #if defined(_WIN32) || defined(_PSP) || defined(__ps2sdk__) || defined(__OS2__) || defined(__NETWARE__) || defined(__NeXT__) || defined(__DOS__) || defined(__bsdi__) 10 #if defined(_WIN32) || defined(_PSP) || defined(__ps2sdk__) || defined(__OS2__) || defined(__NETWARE__) || defined(__NeXT__) || defined(__DOS__) || defined(__bsdi__) || defined(__amiga__) 11 11 char* strptime(const char *buf, const char *fmt, struct tm *tm); 12 12 #endif -
trunk/Server/version.c
r399 r402 26 26 #elif defined(__DOS__) 27 27 "DOS" 28 #elif defined(__amiga__) 29 "Amiga" 28 30 #elif defined(__MINGW32__) 29 31 "Windows-MinGW32" -
trunk/config_platform.h
r377 r402 33 33 34 34 #if (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)) && !defined(NO_GETNAMEINFO) 35 #define NO_GETNAMEINFO 36 /* Do not use getnameinfo */ 37 #endif 38 39 #if (defined(__amiga__)) && !defined(NO_IPV6) 40 #define NO_IPV6 41 /* Amiga does not have IPv6 */ 42 #endif 43 44 #if (defined(__amiga__)) && defined(HAS_CHROOT) 45 #undef HAS_CHROOT 46 /* Amiga does not have chroot */ 47 #endif 48 49 #if (defined(__amiga__)) && !defined(NO_GETNAMEINFO) 35 50 #define NO_GETNAMEINFO 36 51 /* Do not use getnameinfo */
Note:
See TracChangeset
for help on using the changeset viewer.