mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
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:
parent
3c5f0da510
commit
0e03402139
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user