]> granicus.if.org Git - libevent/commitdiff
wepoll: use lower-cased windows headers
authorfanquake <fanquake@gmail.com>
Mon, 22 Jun 2020 11:40:06 +0000 (19:40 +0800)
committerfanquake <fanquake@gmail.com>
Mon, 22 Jun 2020 11:40:06 +0000 (19:40 +0800)
This matches their use throughout the rest of the project, and fixes the
build when you are cross-compiling on Linux using mingw-w64. i.e:

  CC       epoll.lo
  CC       wepoll.lo
  CC       signal.lo
wepoll.c:138:10: fatal error: WS2tcpip.h: No such file or directory
 #include <WS2tcpip.h>
          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1918: wepoll.lo] Error 1

wepoll.c

index a9c59bbdf0c25459fa2257ca1366427285d48005..88991ed91a930a09c8569420562808652eee33de 100644 (file)
--- a/wepoll.c
+++ b/wepoll.c
@@ -135,9 +135,9 @@ WEPOLL_EXPORT int epoll_wait(HANDLE ephnd,
 #pragma warning(push, 1)
 #endif
 
-#include <WS2tcpip.h>
-#include <WinSock2.h>
-#include <Windows.h>
+#include <ws2tcpip.h>
+#include <winsock2.h>
+#include <windows.h>
 
 #ifndef __GNUC__
 #pragma warning(pop)