diff --git a/0001-Resolve-build-failure-on-i686-linux.patch b/0001-Resolve-build-failure-on-i686-linux.patch new file mode 100644 index 0000000..31a88f2 --- /dev/null +++ b/0001-Resolve-build-failure-on-i686-linux.patch @@ -0,0 +1,29 @@ +From 984839295b4160a5859273399254225b9967c570 Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Sat, 18 Jun 2022 22:28:20 +0200 +Subject: [PATCH] Resolve build failure on i686-linux + +gcc had to say: +gzdoom-g4.8.0/src/common/engine/stats.h:83:13: error: 'CPU' was not declared in this scope + 83 | if (CPU.bRDTSC) +--- + src/common/engine/stats.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/common/engine/stats.h b/src/common/engine/stats.h +index d6e976ea5..0794455d2 100644 +--- a/src/common/engine/stats.h ++++ b/src/common/engine/stats.h +@@ -35,6 +35,9 @@ + #define __STATS_H__ + + #include "zstring.h" ++#if defined __i386__ ++#include "x86.h" ++#endif + + #if !defined _WIN32 && !defined __APPLE__ + +-- +2.36.1 + diff --git a/gzdoom.changes b/gzdoom.changes index 9ad94b3..dc07017 100644 --- a/gzdoom.changes +++ b/gzdoom.changes @@ -11,6 +11,7 @@ Mon Jun 6 21:22:12 UTC 2022 - Jan Engelhardt * Many MBF21 fixes. * Added the cutscene system from Raze. - Add gzdoom-discord.patch +- Add 0001-Resolve-build-failure-on-i686-linux.patch ------------------------------------------------------------------- Sat Apr 23 01:04:05 UTC 2022 - Jan Engelhardt diff --git a/gzdoom.spec b/gzdoom.spec index 410c8aa..0999d8e 100644 --- a/gzdoom.spec +++ b/gzdoom.spec @@ -32,6 +32,7 @@ Patch3: gzdoom-asmjit.patch Patch4: gzdoom-sdlbug.patch Patch5: gzdoom-vulkan.patch Patch6: gzdoom-discord.patch +Patch7: 0001-Resolve-build-failure-on-i686-linux.patch BuildRequires: cmake >= 2.8.7 BuildRequires: discord-rpc-devel BuildRequires: gcc-c++