Do not declare program_invocation_short_name because people can't make up their

mind what type it should be.
This commit is contained in:
Nicholas Marriott 2017-02-06 13:34:19 +00:00
parent 50f25a8f05
commit 4eabd7ec90

View File

@ -16,14 +16,14 @@
#include <sys/types.h> #include <sys/types.h>
#include <errno.h>
#include "compat.h" #include "compat.h"
#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME) #if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
const char * const char *
getprogname(void) getprogname(void)
{ {
extern char *program_invocation_short_name;
return (program_invocation_short_name); return (program_invocation_short_name);
} }
#elif defined(HAVE___PROGNAME) #elif defined(HAVE___PROGNAME)