X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=compat%2Fgetprogname.c;h=6fa876d5522bd8e5d492b9d34763ce8ee1208bf1;hb=e8db7f6eea9b35527ddd4532affabd18a30549b5;hp=34673f5f69962264ff4e5303c9bb6c00ec01b701;hpb=98b9fd63cd28a3636a7cd24641b8f497eaadcd50;p=debian%2Fsudo diff --git a/compat/getprogname.c b/compat/getprogname.c index 34673f5..6fa876d 100644 --- a/compat/getprogname.c +++ b/compat/getprogname.c @@ -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 */