From: Nishi Date: Thu, 17 Oct 2024 10:17:48 +0000 (+0000) Subject: trying to fix bsdi port X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=93604b430290210f41d6d3e79340a1fad483edf2;p=tewi.git trying to fix bsdi port git-svn-id: file:///raid/svn-personal/tewi/trunk@377 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index 8194936..b89c7c9 100644 --- a/Server/server.c +++ b/Server/server.c @@ -107,7 +107,7 @@ uint16_t htons(uint16_t n) { return ((n >> 8) & 0xff) | ((n << 8) & 0xff00); } #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); diff --git a/Server/strptime.c b/Server/strptime.c index 6277c2b..bb4dd47 100644 --- a/Server/strptime.c +++ b/Server/strptime.c @@ -35,7 +35,7 @@ //#include //__RCSID("$NetBSD: strptime.c,v 1.62 2017/08/24 01:01:09 ginsbach Exp $"); -#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) +#if defined(__MINGW32__) || defined(_MSC_VER || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__NeXT__) || defined(__bsdi__) #include #include diff --git a/config_platform.h b/config_platform.h index 3d4d530..2bf9975 100644 --- a/config_platform.h +++ b/config_platform.h @@ -85,6 +85,14 @@ #undef USE_POLL #endif +#if defined(__bsdi__) && !defined(NO_IPV6) +#define NO_IPV6 +#endif + +#if defined(__bsdi__) && defined(USE_POLL) +#undef USE_POLL +#endif + #endif /*