From: Nishi Date: Sun, 3 Nov 2024 13:51:38 +0000 (+0000) Subject: fixing for solaris X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=86edff4eb5f1346e6b433df46d71257b7d8250e7;p=tewi.git fixing for solaris git-svn-id: file:///raid/svn-personal/tewi/trunk@407 8739d7e6-ffea-ec47-b151-bdff447c6205 --- 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)