From 8ff4e61e3d00e917ffd284050289c3cf11a41aea Mon Sep 17 00:00:00 2001 From: Michael Cronenworth Date: Wed, 22 Jan 2020 09:11:47 -0600 Subject: [PATCH] Add patch for GCC 10 changes --- wine-5.0-gcc10.patch | 11 +++++++++++ wine.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 wine-5.0-gcc10.patch diff --git a/wine-5.0-gcc10.patch b/wine-5.0-gcc10.patch new file mode 100644 index 0000000..953ebbf --- /dev/null +++ b/wine-5.0-gcc10.patch @@ -0,0 +1,11 @@ +--- a/dlls/crypt32/crypt32_private.h 2020-01-21 11:03:21.000000000 -0600 ++++ b/dlls/crypt32/crypt32_private.h 2020-01-22 09:09:42.545954092 -0600 +@@ -152,7 +152,7 @@ + */ + HCRYPTPROV WINAPI I_CryptGetDefaultCryptProv(ALG_ID); + +-HINSTANCE hInstance DECLSPEC_HIDDEN; ++extern HINSTANCE hInstance DECLSPEC_HIDDEN; + + void crypt_oid_init(void) DECLSPEC_HIDDEN; + void crypt_oid_free(void) DECLSPEC_HIDDEN; diff --git a/wine.spec b/wine.spec index 4ccf48f..53e2a8c 100644 --- a/wine.spec +++ b/wine.spec @@ -72,6 +72,7 @@ Source109: wine-oleview.desktop Source150: wine.appdata.xml # build fixes +Patch100: wine-5.0-gcc10.patch # wine bugs @@ -680,6 +681,7 @@ This package adds the opencl driver for wine. %prep %setup -q -n wine-%{version} +%patch100 -p1 -b.gcc10 %patch511 -p1 -b.cjk %if 0%{?wine_staging}