From: Florian Weimer Date: Fri, 9 Aug 2024 14:17:14 +0000 (+0200) Subject: Define __libc_initial for the static libc X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=eb0e50e9a1cf80a2ba6f33f990a08ef37a3267fb;p=glibc.git Define __libc_initial for the static libc Reviewed-by: Adhemerval Zanella --- diff --git a/include/libc-internal.h b/include/libc-internal.h index 87ac591835..1ef43ffe67 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -53,6 +53,9 @@ extern __typeof (__profile_frequency) __profile_frequency attribute_hidden; is not for an audit module, not loaded via dlmopen, and not loaded via static dlopen either). */ extern _Bool __libc_initial attribute_hidden; +#else +/* The static libc is always the initial namespace. */ +# define __libc_initial ((_Bool) 1) #endif #endif /* _LIBC_INTERNAL */