X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=compat%2Fgetcwd.c;h=c5765be21404891a94adeed175972cb89232ed90;hb=e8db7f6eea9b35527ddd4532affabd18a30549b5;hp=31855046c0d22876e30a184b92b5fe14a349a479;hpb=98b9fd63cd28a3636a7cd24641b8f497eaadcd50;p=debian%2Fsudo diff --git a/compat/getcwd.c b/compat/getcwd.c index 3185504..c5765be 100644 --- a/compat/getcwd.c +++ b/compat/getcwd.c @@ -29,7 +29,9 @@ #include -#include +#ifndef HAVE_GETCWD + +#include #include #include @@ -262,3 +264,4 @@ err: (void)closedir(dir); return NULL; } +#endif /* HAVE_GETCWD */