--- embedaddon/sudo/compat/getcwd.c 2012/02/21 16:23:02 1.1.1.1 +++ embedaddon/sudo/compat/getcwd.c 2013/07/22 10:46:11 1.1.1.2 @@ -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 */