diff options
author | Marcus Haehnel <marcus.haehnel@kernkonzept.com> | 2025-03-06 15:07:55 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-03-06 15:31:11 +0100 |
commit | 0fb6b453528bfea7bb7c31459d3fea6264f2b27a (patch) | |
tree | 99cc676e3b9a135ec471d66415cc62e164276151 /ldso/include | |
parent | 737a0edf4d2d52c6c2836ffe24c7143b63498123 (diff) |
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 <georg.kotheimer@kernkonzept.com>
Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Diffstat (limited to 'ldso/include')
-rwxr-xr-x | ldso/include/ldso.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ldso/include/ldso.h b/ldso/include/ldso.h index 60e0a5bec..a2c3ec040 100755 --- a/ldso/include/ldso.h +++ b/ldso/include/ldso.h @@ -34,6 +34,7 @@ #include <stdarg.h> #include <stddef.h> /* for ptrdiff_t */ #include <stdbool.h> +#if !defined(_FCNTL_H) #define _FCNTL_H /* We need this if arch has only new syscalls defined */ #ifndef AT_FDCWD @@ -190,6 +191,7 @@ extern void *_dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE loa #include <dl-elf.h> #endif +#endif /* _FCNTL_H */ #define AUX_MAX_AT_ID 40 extern ElfW(auxv_t) _dl_auxvt[AUX_MAX_AT_ID]; /* Cache frequently accessed auxiliary vector entries */ |