aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-05-26 17:39:27 +0000
committerWarner Losh <imp@FreeBSD.org>2024-05-26 17:39:27 +0000
commit0e03402139da0557e9ff41a06e3e4c152bed0ad7 (patch)
tree66d5612de3e5063cf9aa4d97ac1f8ba471240f88 /tools
parent3c5f0da5106bee21ab3726f608b5c377da92a733 (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/build/cross-build/progname.c4
1 files 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 <sys/cdefs.h>
#include <stdlib.h>
-#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__ */