ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/tewi/Server/server.c
(Generate patch)

Comparing Server/server.c (file contents):
Revision 1.1 by nishi, Thu Oct 17 09:53:39 2024 UTC vs.
Revision 1.3 by nishi, Thu Oct 17 10:33:26 2024 UTC

# Line 107 | Line 107 | uint16_t htons(uint16_t n) { return ((n
107   #endif
108   #endif
109  
110 < #if defined(_PSP) || defined(__ps2sdk__)
110 > #if defined(_PSP) || defined(__ps2sdk__) || defined(__bsdi__)
111   #include "strptime.h"
112   #endif
113  
# Line 620 | Line 620 | int tw_server_pass(void* ptr) {
620                                          time_t t;
621                                          struct tm* btm;
622                                          strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
623 < #if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__)
623 > #if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__) || defined(__bsdi__)
624                                          t = 0;
625                                          btm = localtime(&t);
626                                          cmtime = mktime(&tm);
# Line 1013 | Line 1013 | void tw_server_loop(void) {
1013          fd_set fdset;
1014          struct timeval tv;
1015   #endif
1016 < #if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__NETWARE__))
1016 > #if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__NETWARE__) && !defined(__DOS__))
1017          struct thread_entry threads[2048];
1018          for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) {
1019                  threads[i].used = false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines