summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMarcus Haehnel <marcus.haehnel@kernkonzept.com>2025-03-06 15:07:55 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2025-03-06 15:31:11 +0100
commit0fb6b453528bfea7bb7c31459d3fea6264f2b27a (patch)
tree99cc676e3b9a135ec471d66415cc62e164276151 /libc
parent737a0edf4d2d52c6c2836ffe24c7143b63498123 (diff)
Fix missing include in __uClibc_mainHEADmaster
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 <georg.kotheimer@kernkonzept.com> Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/internals/__uClibc_main.c2
1 files changed, 2 insertions, 0 deletions
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 <dl-osinfo.h>
static uintptr_t stack_chk_guard;