/[tewi]/Server/server.c
ViewVC logotype

Diff of /Server/server.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by nishi, Thu Oct 17 09:53:39 2024 UTC Revision 1.2 by nishi, Thu Oct 17 10:18:01 2024 UTC
# Line 107  uint16_t htons(uint16_t n) { return ((n Line 107  uint16_t htons(uint16_t n) { return ((n
107  #endif  #endif
108  #endif  #endif
109    
110  #if defined(_PSP) || defined(__ps2sdk__)  #if defined(_PSP) || defined(__ps2sdk__) || defined(__bsdi__)
111  #include "strptime.h"  #include "strptime.h"
112  #endif  #endif
113    
# Line 620  int tw_server_pass(void* ptr) { Line 620  int tw_server_pass(void* ptr) {
620                                          time_t t;                                          time_t t;
621                                          struct tm* btm;                                          struct tm* btm;
622                                          strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);                                          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__)  #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;                                          t = 0;
625                                          btm = localtime(&t);                                          btm = localtime(&t);
626                                          cmtime = mktime(&tm);                                          cmtime = mktime(&tm);


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

nishi@chaotic.ninja
ViewVC Help
Powered by ViewVC 1.3.0-dev