Subversion Repositories Tewi

Rev

Rev 364 | Rev 384 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 364 Rev 377
Line 1... Line 1...
1
/* $Id: server.c 364 2024-10-17 00:47:01Z nishi $ */
1
/* $Id: server.c 377 2024-10-17 10:17:48Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 105... Line 105...
105
#ifndef NO_GETNAMEINFO
105
#ifndef NO_GETNAMEINFO
106
#include <netdb.h>
106
#include <netdb.h>
107
#endif
107
#endif
108
#endif
108
#endif
109
 
109
 
110
#if defined(_PSP) || defined(__ps2sdk__)
110
#if defined(_PSP) || defined(__ps2sdk__) || defined(__bsdi__)
111
#include "strptime.h"
111
#include "strptime.h"
112
#endif
112
#endif
113
 
113
 
114
#ifdef __HAIKU__
114
#ifdef __HAIKU__
115
#include <OS.h>
115
#include <OS.h>
Line 618... Line 618...
618
				} else if(cm_strcaseequ(req.headers[i], "If-Modified-Since")) {
618
				} else if(cm_strcaseequ(req.headers[i], "If-Modified-Since")) {
619
					struct tm tm;
619
					struct tm tm;
620
					time_t t;
620
					time_t t;
621
					struct tm* btm;
621
					struct tm* btm;
622
					strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
622
					strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm);
623
#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__)
623
#if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__USLC__) || defined(__NeXT__) || defined(__bsdi__)
624
					t = 0;
624
					t = 0;
625
					btm = localtime(&t);
625
					btm = localtime(&t);
626
					cmtime = mktime(&tm);
626
					cmtime = mktime(&tm);
627
					cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
627
					cmtime -= (btm->tm_hour * 60 + btm->tm_min) * 60;
628
#else
628
#else