Fossil SCM
Changes to cgi.c in check-in [e63a9fd9d0] broke the windows build because of undefined socklen_t. Added the appropriate include file
Commit
e7cf1892653be06d66069aef09c8c882852d6f2e
Parent
a3e4a5d27d88382…
1 file changed
+1
+1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -30,10 +30,11 @@ | ||
| 30 | 30 | #include "config.h" |
| 31 | 31 | #ifdef __MINGW32__ |
| 32 | 32 | # include <windows.h> /* for Sleep once server works again */ |
| 33 | 33 | # include <winsock2.h> /* socket operations */ |
| 34 | 34 | # define sleep Sleep /* windows does not have sleep, but Sleep */ |
| 35 | +# include <ws2tcpip.h> | |
| 35 | 36 | #else |
| 36 | 37 | # include <sys/socket.h> |
| 37 | 38 | # include <netinet/in.h> |
| 38 | 39 | # include <arpa/inet.h> |
| 39 | 40 | # include <sys/times.h> |
| 40 | 41 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -30,10 +30,11 @@ | |
| 30 | #include "config.h" |
| 31 | #ifdef __MINGW32__ |
| 32 | # include <windows.h> /* for Sleep once server works again */ |
| 33 | # include <winsock2.h> /* socket operations */ |
| 34 | # define sleep Sleep /* windows does not have sleep, but Sleep */ |
| 35 | #else |
| 36 | # include <sys/socket.h> |
| 37 | # include <netinet/in.h> |
| 38 | # include <arpa/inet.h> |
| 39 | # include <sys/times.h> |
| 40 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -30,10 +30,11 @@ | |
| 30 | #include "config.h" |
| 31 | #ifdef __MINGW32__ |
| 32 | # include <windows.h> /* for Sleep once server works again */ |
| 33 | # include <winsock2.h> /* socket operations */ |
| 34 | # define sleep Sleep /* windows does not have sleep, but Sleep */ |
| 35 | # include <ws2tcpip.h> |
| 36 | #else |
| 37 | # include <sys/socket.h> |
| 38 | # include <netinet/in.h> |
| 39 | # include <arpa/inet.h> |
| 40 | # include <sys/times.h> |
| 41 |