--- embedaddon/sudo/compat/getprogname.c 2012/02/21 16:23:02 1.1.1.1 +++ embedaddon/sudo/compat/getprogname.c 2013/07/22 10:46:11 1.1.1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Todd C. Miller + * Copyright (c) 2010, 2013 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -16,6 +16,8 @@ #include +#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME) + #include #include @@ -44,3 +46,4 @@ getprogname(void) { return progname; } +#endif /* !HAVE_GETPROGNAME !HAVE___PROGNAME */