]> granicus.if.org Git - sudo/commitdiff
Update guard to take __progname into account
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 1 Apr 2013 14:23:36 +0000 (10:23 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 1 Apr 2013 14:23:36 +0000 (10:23 -0400)
compat/getprogname.c

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