--- Server/server.c 2024/10/17 09:53:39 1.1 +++ Server/server.c 2024/10/17 10:18:01 1.2 @@ -1,4 +1,4 @@ -/* $Id: server.c,v 1.1 2024/10/17 09:53:39 nishi Exp $ */ +/* $Id: server.c,v 1.2 2024/10/17 10:18:01 nishi Exp $ */ #define SOURCE @@ -107,7 +107,7 @@ uint16_t htons(uint16_t n) { return ((n #endif #endif -#if defined(_PSP) || defined(__ps2sdk__) +#if defined(_PSP) || defined(__ps2sdk__) || defined(__bsdi__) #include "strptime.h" #endif @@ -620,7 +620,7 @@ int tw_server_pass(void* ptr) { time_t t; struct tm* btm; strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm); -#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__) t = 0; btm = localtime(&t); cmtime = mktime(&tm);