Fossil

Check-in [889bc0f7]
Login

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

Overview
Comment:Include winsock2.h for WinXP compatibility; was breaking the build
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:889bc0f79488ccc9799fce3b74b17f6f48502b97ad7cd5aeb9b8e2ebfaf69e7e
User & Date: ashepilko 2018-08-02 03:35:55
Original Comment: Add winsock2.h for WinXP compatibility; was breaking the build
Context
2018-08-02
03:53
Exit with error status when halt is triggered on error check-in: ccc66763 user: ashepilko tags: trunk
03:35
Include winsock2.h for WinXP compatibility; was breaking the build check-in: 889bc0f7 user: ashepilko tags: trunk
2018-07-31
00:09
Update the custom MinGW makefile. check-in: d5c41263 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/winhttp.c.

18
19
20
21
22
23
24




25
26
27
28
29
30
31
** This file implements a very simple (and low-performance) HTTP server
** for windows. It also implements a Windows Service which allows the HTTP
** server to be run without any user logged on.
*/
#include "config.h"
#ifdef _WIN32
/* This code is for win32 only */




#include <ws2tcpip.h>
#include <windows.h>
#include <process.h>
#include "winhttp.h"

#ifndef IPV6_V6ONLY
# define IPV6_V6ONLY 27  /* Because this definition is missing in MinGW */







>
>
>
>







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
** This file implements a very simple (and low-performance) HTTP server
** for windows. It also implements a Windows Service which allows the HTTP
** server to be run without any user logged on.
*/
#include "config.h"
#ifdef _WIN32
/* This code is for win32 only */
# if !defined(_WIN32_WINNT)
#  define _WIN32_WINNT 0x0501
# endif
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <process.h>
#include "winhttp.h"

#ifndef IPV6_V6ONLY
# define IPV6_V6ONLY 27  /* Because this definition is missing in MinGW */