mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-16 18:56:56 +02:00
Base getprogname() on program_invocation_short_name presence instead of glibc
This commit is contained in:
@@ -42,7 +42,7 @@ static const char *__progname = NULL;
|
||||
const char *
|
||||
getprogname(void)
|
||||
{
|
||||
#ifdef __GLIBC__
|
||||
#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
|
||||
if (__progname == NULL)
|
||||
__progname = program_invocation_short_name;
|
||||
#elif defined(HAVE_GETEXECNAME)
|
||||
|
Reference in New Issue
Block a user