From 92d1c660e7fc1b2c95225d41a0a9de5759d0ccf6 Mon Sep 17 00:00:00 2001 From: Maxim Zoterov <51298061+mzoterov@users.noreply.github.com> Date: Thu, 28 Apr 2022 14:19:07 +0300 Subject: [PATCH 1/2] Update mmap_win32.c --- src/libethash/mmap_win32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libethash/mmap_win32.c b/src/libethash/mmap_win32.c index 42968b98..faff3025 100644 --- a/src/libethash/mmap_win32.c +++ b/src/libethash/mmap_win32.c @@ -14,6 +14,7 @@ #include #include #include "mmap.h" +#pragma comment(lib, "Shell32.lib") #ifdef __USE_FILE_OFFSET64 # define DWORD_HI(x) (x >> 32) From 00ec3f491baaa714d07917bae2e5cacfba7d3f31 Mon Sep 17 00:00:00 2001 From: Maxim Zoterov <51298061+mzoterov@users.noreply.github.com> Date: Thu, 28 Apr 2022 14:20:19 +0300 Subject: [PATCH 2/2] Update core.c --- src/python/core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/python/core.c b/src/python/core.c index c66e03c5..6a687e89 100644 --- a/src/python/core.c +++ b/src/python/core.c @@ -1,5 +1,9 @@ #include +#if defined(_WIN32) || defined(WIN32) +#include +#else #include +#endif #include #include #include