From 86edff4eb5f1346e6b433df46d71257b7d8250e7 Mon Sep 17 00:00:00 2001 From: Nishi Date: Sun, 3 Nov 2024 13:51:38 +0000 Subject: [PATCH] fixing for solaris git-svn-id: file:///raid/svn-personal/tewi/trunk@407 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Platform/solaris.mk | 2 +- Server/server.c | 2 +- Server/version.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Platform/solaris.mk b/Platform/solaris.mk index 2bf3460..e819ef4 100644 --- a/Platform/solaris.mk +++ b/Platform/solaris.mk @@ -4,6 +4,6 @@ CC = cc AR = ar CFLAGS = -g -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC -I ../VC6Compat LDFLAGS = -LIBS = -lsocket +LIBS = -lsocket -ldl EXEC = LIBSUF = .so diff --git a/Server/server.c b/Server/server.c index e312199..65d406d 100644 --- a/Server/server.c +++ b/Server/server.c @@ -627,7 +627,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__) || defined(__bsdi__) || defined(__amiga__) +#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__) || defined(__bsdi__) || defined(__amiga__) || defined(__sun__) t = 0; btm = localtime(&t); cmtime = mktime(&tm); diff --git a/Server/version.c b/Server/version.c index 54d87e1..af44d72 100644 --- a/Server/version.c +++ b/Server/version.c @@ -39,6 +39,8 @@ const char* tw_platform = "Haiku" #elif defined(__APPLE__) "Darwin" +#elif defined(__sun__) + "Solaris" #elif defined(__CYGWIN__) "Cygwin" #elif defined(_PSP) -- 2.43.0