Update guard to take __progname into account

This commit is contained in:
Todd C. Miller
2013-04-01 10:23:36 -04:00
parent d7ea8fead5
commit afc95dd118

View File

@@ -16,7 +16,7 @@
#include <config.h> #include <config.h>
#ifndef HAVE_GETPROGNAME #if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
#include <sys/types.h> #include <sys/types.h>
@@ -46,4 +46,4 @@ getprogname(void)
{ {
return progname; return progname;
} }
#endif /* HAVE_GETPROGNAME */ #endif /* !HAVE_GETPROGNAME !HAVE___PROGNAME */