Fossil

Check-in [26a88f1b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Compilation fix for MinGW: consistently use _WIN32_WINNT when including winsock2.h, etc.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 26a88f1bbf98763fafda9e053a3b030fd9a638de
User & Date: mistachkin 2016-11-03 18:31:45
Context
2016-11-04
12:03
typo check-in: e826eadd user: jan.nijtmans tags: trunk
2016-11-03
18:31
Compilation fix for MinGW: consistently use _WIN32_WINNT when including winsock2.h, etc. check-in: 26a88f1b user: mistachkin tags: trunk
2016-11-02
17:47
Fix the build on Windows. check-in: 11e105b3 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/cgi.c.

19
20
21
22
23
24
25



26
27
28
29
30
31
32
** services to CGI programs.  There are procedures for parsing and
** dispensing QUERY_STRING parameters and cookies, the "mprintf()"
** formatting function and its cousins, and routines to encode and
** decode strings in HTML or HTTP.
*/
#include "config.h"
#ifdef _WIN32



# include <winsock2.h>
# include <ws2tcpip.h>
#else
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# include <sys/times.h>







>
>
>







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
** services to CGI programs.  There are procedures for parsing and
** dispensing QUERY_STRING parameters and cookies, the "mprintf()"
** formatting function and its cousins, and routines to encode and
** decode strings in HTML or HTTP.
*/
#include "config.h"
#ifdef _WIN32
# if !defined(_WIN32_WINNT)
#  define _WIN32_WINNT 0x0501
# endif
# include <winsock2.h>
# include <ws2tcpip.h>
#else
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# include <sys/times.h>