]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
stacktrace: Add missing locale.h
authorAlfred Wingate <parona@protonmail.com>
Wed, 29 Jan 2025 08:06:22 +0000 (10:06 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 30 Jan 2025 11:09:28 +0000 (12:09 +0100)
The missing header is only obvious on musl and on glibc when you don't
have optimizations enabled.

Normally the header would transitively come from config.h -> ./lib/eu-config.h
-> glibc libintl.h. with __OPTIMIZE__.

https://sourceware.org/git/?p=glibc.git;a=blob;f=intl/libintl.h;hb=HEAD#l103

Signed-off-by: Alfred Wingate <parona@protonmail.com>
src/stacktrace.c

index b912ca5de5026f88f4466ededf8a0efe4d0d19bf..d8699ce53c8921058d75a56116f8bc1f0820d2e8 100644 (file)
@@ -77,6 +77,7 @@
 #include <string.h>
 #include <fcntl.h>
 #include <signal.h>
+#include <locale.h>
 
 #include <system.h>