From c5c856aaa106202c01de738cf7d0a2ebedbecb48 Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Mon, 8 Aug 2022 20:59:50 -0400 Subject: [PATCH] Add credentialprovider.h not in mingw-w64 This header has been recently added to mingw-w64 on our request. Until its available in released versions, wget it from mingw-w64's github repo. Only affects autotools-based builds -- MSVC builds will pick the native header. Signed-off-by: Selva Nair --- plap/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plap/Makefile.am b/plap/Makefile.am index 1df7141..9a215ab 100644 --- a/plap/Makefile.am +++ b/plap/Makefile.am @@ -28,7 +28,7 @@ LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RCCOMPILE) $(RCCOMPILE) -i "$<" -o "$@" MAINTAINERCLEANFILES = \ - $(srcdir)/Makefile.in + $(srcdir)/Makefile.in $(srcdir)/credentialprovider.h lib_LTLIBRARIES = libopenvpn_plap.la @@ -67,7 +67,9 @@ libopenvpn_plap_la_RESOURCES = \ openvpn-plap-res.lo: $(libopenvpn_plap_la_RESOURCES) $(top_srcdir)/openvpn-gui-res.h EXTRA_DIST = openvpn-plap-res.rc openvpn-plap.manifest +BUILT_SOURCES = credentialprovider.h libopenvpn_plap_la_SOURCES = \ + credentialprovider.h \ stub.c plap_provider.c \ plap_connection.h plap_connection.c \ plap_common.h plap_common.c \ @@ -96,3 +98,6 @@ libopenvpn_plap_la_LIBADD = \ -lrpcrt4 libopenvpn_plap_la_LDFLAGS = -no-undefined -avoid-version -static-libgcc + +credentialprovider.h: + wget https://raw.githubusercontent.com/mirror/mingw-w64/master/mingw-w64-headers/include/credentialprovider.h