[newlib-cygwin] Cygwin: Include local ntsecapi.h

Corinna Vinschen corinna@sourceware.org
Wed Jul 4 12:19:00 GMT 2018


commit 0ce27ecd08355620e73c89f8cf6b71f597b75f9c
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date:   Wed Jul 4 12:42:39 2018 +0200

    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 <corinna@vinschen.de>

 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 2e01f30..2705ecd 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
-#include <w32api/ntsecapi.h>
+#include "ntsecapi.h"
 #include <w32api/ws2tcpip.h>
 #include <w32api/mswsock.h>
 #include <unistd.h>

More information about the Cygwin-cvs mailing list