mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Missing <winerror.h> on win7/MinGW(MINGW32_NT-6.1)/MSYS
This commit is contained in:
parent
669a53f341
commit
7806f3ec78
@ -54,6 +54,7 @@
|
||||
#ifdef _WIN32
|
||||
#include <wincrypt.h>
|
||||
#include <process.h>
|
||||
#include <winerror.h>
|
||||
#else
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include "mm-internal.h"
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <winerror.h>
|
||||
#include <windows.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
@ -46,6 +46,7 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <winerror.h>
|
||||
#include <ws2tcpip.h>
|
||||
#endif
|
||||
|
||||
|
1
evdns.c
1
evdns.c
@ -77,6 +77,7 @@
|
||||
#include <stdarg.h>
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <winerror.h>
|
||||
#include <ws2tcpip.h>
|
||||
#ifndef _WIN32_IE
|
||||
#define _WIN32_IE 0x400
|
||||
|
1
evutil.c
1
evutil.c
@ -29,6 +29,7 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <winerror.h>
|
||||
#include <ws2tcpip.h>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
@ -35,6 +35,7 @@
|
||||
#define _WIN32_WINNT 0x0403
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#include <winerror.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <mswsock.h>
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user