From 0e03402139da0557e9ff41a06e3e4c152bed0ad7 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 26 May 2024 11:39:27 -0600 Subject: [PATCH] cross-build: This is not glibc specific, but Linux specific Neither glibc nor musl define these interfaces, so provide them for all Linux builds. Sponsored by: Netflix Reviewed by: val_packett.cool Differential Revision: https://reviews.freebsd.org/D45355 --- tools/build/cross-build/progname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/cross-build/progname.c b/tools/build/cross-build/progname.c index 81467627f164..6d396dadb67a 100644 --- a/tools/build/cross-build/progname.c +++ b/tools/build/cross-build/progname.c @@ -36,7 +36,7 @@ #include #include -#ifdef __GLIBC__ +#ifdef __linux__ extern const char *__progname; const char * getprogname(void) @@ -48,4 +48,4 @@ setprogname(const char *progname) { __progname = progname; } -#endif /* __GLIBC__ */ +#endif /* __linux__ */