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
This commit is contained in:
Warner Losh 2024-05-26 11:39:27 -06:00
parent 3c5f0da510
commit 0e03402139

View File

@ -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__ */