]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf/libdwfl: Remove LIB_SYSTEM_H define in lib{elf,dwfl}_crc32.c
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 20 Oct 2022 18:25:43 +0000 (02:25 +0800)
committerMark Wielaard <mark@klomp.org>
Thu, 27 Oct 2022 13:17:38 +0000 (15:17 +0200)
commit10f01dad96325706c746000e467e2a33197e6ea2
tree5044cf982604c7da8c4714f3e1c9f6d556246966
parenteae6ad37f96826b1b7ddf269ee4d753079054413
libelf/libdwfl: Remove LIB_SYSTEM_H define in lib{elf,dwfl}_crc32.c

rationale: https://sourceware.org/bugzilla/show_bug.cgi?id=21001

If we don't remove this macro, when try #include <system.h> in
libdw/memory-access.h wont' take effect because
"#define LIB_SYSTEM_H 1"
The compile error:
./../libdw/memory-access.h:390:12: error: implicit declaration of
function ‘bswap_32’ [-Werror=implicit-function-declaration]

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
libdwfl/ChangeLog
libdwfl/libdwfl_crc32.c
libelf/ChangeLog
libelf/libelf_crc32.c