Changeset 182 in Main for trunk/Server/server.c
- Timestamp:
- Sep 27, 2024, 9:55:12 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r173 r182 24 24 #include <errno.h> 25 25 #include <sys/stat.h> 26 #include <sys/types.h> 26 27 #include <time.h> 27 28 … … 53 54 #include <netdb.h> 54 55 #endif 56 #endif 57 58 #ifdef _PSP 59 #include "strptime.h" 55 60 #endif 56 61 … … 507 512 struct tm tm; 508 513 strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm); 509 #if def __MINGW32__514 #if defined(__MINGW32__) || defined(_PSP) 510 515 time_t t = 0; 511 516 struct tm* btm = localtime(&t); … … 907 912 if(cond) { 908 913 SOCKADDR claddr; 909 int clen = sizeof(claddr);914 socklen_t clen = sizeof(claddr); 910 915 int sock = accept(sockets[i], (struct sockaddr*)&claddr, &clen); 911 916 cm_log("Server", "New connection accepted");
Note:
See TracChangeset
for help on using the changeset viewer.