From 0fb6b453528bfea7bb7c31459d3fea6264f2b27a Mon Sep 17 00:00:00 2001 From: Marcus Haehnel Date: Thu, 6 Mar 2025 15:07:55 +0100 Subject: Fix missing include in __uClibc_main Commit 227b7c825b6c79479f7222be03e83991b927da26 introduced a dependency on _dl_auxvt but missed to include the header defining the symbol. Include the ldso.h header that defines this and safeguard other parts of that header that do not play nice if fcntl.h has already been included. The latter is the case only for __uClibc_main.c. Reviewed-by: Georg Kotheimer Signed-off-by: Marcus Haehnel --- libc/misc/internals/__uClibc_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc') diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index a84492248..87f80d4f2 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -84,6 +84,8 @@ static void fdpic_init_array_jump(void *addr) #ifndef SHARED void *__libc_stack_end = NULL; +#include "ldso.h" /* Needed for _dl_auxvt */ + # ifdef __UCLIBC_HAS_SSP__ # include static uintptr_t stack_chk_guard; -- cgit v1.2.3