]> Nishi Git Mirror - tewi.git/commitdiff
fixing for solaris
authorNishi <nishi@nishi.boats>
Sun, 3 Nov 2024 13:51:38 +0000 (13:51 +0000)
committerNishi <nishi@nishi.boats>
Sun, 3 Nov 2024 13:51:38 +0000 (13:51 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@407 8739d7e6-ffea-ec47-b151-bdff447c6205

Platform/solaris.mk
Server/server.c
Server/version.c

index 2bf34609f3299bab5a637b992f1d4858d7fbd93f..e819ef4df76d95d2fbbe84dea7a3eea4913dca08 100644 (file)
@@ -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
index e31219990e91be08ed50f656fc8295b7a5070ae7..65d406db17c65eec4b456d3c27444074034f06a1 100644 (file)
@@ -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);
index 54d87e1dec0f9c0db061fd86de6a6a9240563907..af44d7210b3e87b43bd0f5445093e62f1d71954b 100644 (file)
@@ -39,6 +39,8 @@ const char* tw_platform =
     "Haiku"
 #elif defined(__APPLE__)
     "Darwin"
+#elif defined(__sun__)
+    "Solaris"
 #elif defined(__CYGWIN__)
     "Cygwin"
 #elif defined(_PSP)