From: Todd C. Miller Date: Mon, 1 Apr 2013 14:23:36 +0000 (-0400) Subject: Update guard to take __progname into account X-Git-Tag: SUDO_1_8_7~1^2~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afc95dd11811effde0045000d92191a0e28d8540;p=sudo Update guard to take __progname into account --- diff --git a/compat/getprogname.c b/compat/getprogname.c index eb5fabfdd..cc897f385 100644 --- a/compat/getprogname.c +++ b/compat/getprogname.c @@ -16,7 +16,7 @@ #include -#ifndef HAVE_GETPROGNAME +#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME) #include @@ -46,4 +46,4 @@ getprogname(void) { return progname; } -#endif /* HAVE_GETPROGNAME */ +#endif /* !HAVE_GETPROGNAME !HAVE___PROGNAME */