git: 0e03402139da - main - cross-build: This is not glibc specific, but Linux specific
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 May 2024 17:40:26 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=0e03402139da0557e9ff41a06e3e4c152bed0ad7
commit 0e03402139da0557e9ff41a06e3e4c152bed0ad7
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-26 17:39:27 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-26 17:39:27 +0000
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 <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__ */