mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-17 11:05:07 +02:00
Use system __progname variable in progname module if available
This commit is contained in:
@@ -33,7 +33,11 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef HAVE___PROGNAME
|
||||
extern const char *__progname;
|
||||
#else
|
||||
static const char *__progname = NULL;
|
||||
#endif
|
||||
|
||||
const char *
|
||||
getprogname(void)
|
||||
|
Reference in New Issue
Block a user