summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Baentsch <57787676+baentsch@users.noreply.github.com>2023-05-20 06:47:39 +0200
committerTomas Mraz <tomas@openssl.org>2023-06-12 08:18:03 +0200
commit9b9c42db3b7e7807e0d3311356fb0316af085171 (patch)
tree1640ad123fa3df52fe189350c65402bd90a180c8
parent78634e8ac253a8edf338d329965724dfa8e033ab (diff)
Fix build on cygwin
Fixes #19531 Reviewed-by: Todd Short <todd.short@me.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21006)
-rw-r--r--Configurations/10-main.conf1
-rw-r--r--providers/implementations/storemgmt/winstore_store.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index cfa9399eca..2200a85b16 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -1717,6 +1717,7 @@ my %targets = (
CFLAGS => picker(default => "-Wall",
debug => "-g -O0",
release => "-O3"),
+ ex_libs => add("-lcrypt32"),
lib_cppflags => "-DTERMIOS -DL_ENDIAN",
sys_id => "CYGWIN",
thread_scheme => "pthread",
diff --git a/providers/implementations/storemgmt/winstore_store.c b/providers/implementations/storemgmt/winstore_store.c
index 570bbe337d..540f9d2440 100644
--- a/providers/implementations/storemgmt/winstore_store.c
+++ b/providers/implementations/storemgmt/winstore_store.c
@@ -23,7 +23,9 @@
#include "prov/implementations.h"
#include "prov/bio.h"
#include "file_store_local.h"
-
+#ifdef __CYGWIN__
+#include <Windows.h>
+#endif
#include <wincrypt.h>
enum {