corelib: Support ELFOSABI_LINUX in qelfparser

ELFOSABI_LINUX is the old name for ELFOSABI_GNU
and some systems (NetBSD 9) with an old elf.h
still use that define instead of ELFOSABI_GNU.

Change-Id: I3d18efe117ea21f13831df5293b4efce99694294
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit ded2fd9ff4fea06af881229bacaeff5d0ecfa6de)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Niclas Rosenvik 2022-11-03 21:22:13 +01:00 committed by Qt Cherry-pick Bot
parent f4eb4c5f30
commit 74f8266e33

View File

@ -20,6 +20,11 @@
# error "Need ELF header to parse plugins." # error "Need ELF header to parse plugins."
#endif #endif
// Support older ELFOSABI define for GNU/Linux
#if !defined(ELFOSABI_GNU) && defined(ELFOSABI_LINUX)
# define ELFOSABI_GNU ELFOSABI_LINUX
#endif
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
using namespace Qt::StringLiterals; using namespace Qt::StringLiterals;