Fix build on cygwin
authorMichael Baentsch <57787676+baentsch@users.noreply.github.com>
Sat, 20 May 2023 04:47:39 +0000 (06:47 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 12 Jun 2023 06:18:03 +0000 (08:18 +0200)
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)

Configurations/10-main.conf
providers/implementations/storemgmt/winstore_store.c

index cfa9399eca7ea2ad9b5228044e51d982ff4919ed..2200a85b1682d8fd9a961e19e3069ad3172db087 100644 (file)
@@ -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",
index 570bbe337d4ef5a12c2b185a939874c8b05c66b1..540f9d24405e88cbf263c032e3a9caf81319674e 100644 (file)
@@ -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 {