mirror of
https://github.com/tmux/tmux.git
synced 2025-01-06 07:48:48 +00:00
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:
parent
50f25a8f05
commit
4eabd7ec90
@ -16,14 +16,14 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
#if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
|
||||
const char *
|
||||
getprogname(void)
|
||||
{
|
||||
extern char *program_invocation_short_name;
|
||||
|
||||
return (program_invocation_short_name);
|
||||
}
|
||||
#elif defined(HAVE___PROGNAME)
|
||||
|
Loading…
Reference in New Issue
Block a user