mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 18:12:57 +01: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 <sys/cdefs.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
#ifdef __linux__
|
||||||
extern const char *__progname;
|
extern const char *__progname;
|
||||||
const char *
|
const char *
|
||||||
getprogname(void)
|
getprogname(void)
|
||||||
@ -48,4 +48,4 @@ setprogname(const char *progname)
|
|||||||
{
|
{
|
||||||
__progname = progname;
|
__progname = progname;
|
||||||
}
|
}
|
||||||
#endif /* __GLIBC__ */
|
#endif /* __linux__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user