From 0ce27ecd08355620e73c89f8cf6b71f597b75f9c Mon Sep 17 00:00:00 2001 From: Takashi Yano Date: Wed, 4 Jul 2018 12:42:39 +0200 Subject: [PATCH] Cygwin: Include local ntsecapi.h Our local ntsecapi.h wrapper corrects a bug in the definition of SystemFunction036 which otherwise leads to crashes on 32 bit when using RtlGenRandom. The fhandler_socket_local.cc file accidentally included the incorrect w32api version of that file, rather than the local wrapper. Fix it. Signed-off-by: Corinna Vinschen --- winsup/cygwin/fhandler_socket_local.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_socket_local.cc b/winsup/cygwin/fhandler_socket_local.cc index 2e01f30a2..2705ecd7b 100644 --- a/winsup/cygwin/fhandler_socket_local.cc +++ b/winsup/cygwin/fhandler_socket_local.cc @@ -21,7 +21,7 @@ #undef u_long #define u_long __ms_u_long #endif -#include +#include "ntsecapi.h" #include #include #include