summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qelfparser_p.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-06-06 09:56:21 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-06-07 17:09:52 -0700
commitb1816c2718acf9743d842e4b02dd314d8252cb78 (patch)
tree1b4713262605f05bb7fd2e6877d501fb871ce764 /src/corelib/plugin/qelfparser_p.cpp
parent604eb6f4cdf61bf02a2e6e2ec2bbb58d0567364c (diff)
QElfParser: fix build if EM_S390 is not defined
Found in the OpenBSD ports patch collection[1] while researching if commit 9caac0f176040b4da48d3ea289683b0b082cf729 was still necessary for OpenBSD. They should upstream their changes instead of working around... [1] https://github.com/openbsd/ports/blob/master/x11/qt6/qtbase/patches/patch-src_corelib_plugin_qelfparser_p_cpp Pick-to: 6.5 6.6 Change-Id: I63b988479db546dabffcfffd17662042c7130f7c Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/corelib/plugin/qelfparser_p.cpp')
-rw-r--r--src/corelib/plugin/qelfparser_p.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/plugin/qelfparser_p.cpp b/src/corelib/plugin/qelfparser_p.cpp
index 54e5a19e2e..a5a72cda18 100644
--- a/src/corelib/plugin/qelfparser_p.cpp
+++ b/src/corelib/plugin/qelfparser_p.cpp
@@ -402,7 +402,9 @@ Q_DECL_UNUSED Q_DECL_COLD_FUNCTION static QDebug &operator<<(QDebug &d, ElfHeade
#ifdef EM_RISCV
case EM_RISCV: d << ", RISC-V"; break;
#endif
+#ifdef EM_S390
case EM_S390: d << ", S/390"; break;
+#endif
case EM_SH: d << ", SuperH"; break;
case EM_SPARC: d << ", SPARC"; break;
case EM_SPARCV9: d << ", SPARCv9"; break;