From 459ae9334d6547f26dbc20c7bde8d74b0d8f8a1a Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 6 Jun 2023 09:56:21 -0700 Subject: [PATCH] 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 Change-Id: I63b988479db546dabffcfffd17662042c7130f7c Reviewed-by: Lars Knoll (cherry picked from commit b1816c2718acf9743d842e4b02dd314d8252cb78) Reviewed-by: Thiago Macieira --- src/corelib/plugin/qelfparser_p.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/plugin/qelfparser_p.cpp b/src/corelib/plugin/qelfparser_p.cpp index 54e5a19e2e6..a5a72cda187 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;