Imported Upstream version 1.8.7
[debian/sudo] / compat / getcwd.c
index 31855046c0d22876e30a184b92b5fe14a349a479..c5765be21404891a94adeed175972cb89232ed90 100644 (file)
@@ -29,7 +29,9 @@
 
 #include <config.h>
 
-#include <sys/param.h>
+#ifndef HAVE_GETCWD
+
+#include <sys/types.h>
 #include <sys/stat.h>
 
 #include <errno.h>
@@ -262,3 +264,4 @@ err:
                (void)closedir(dir);
        return NULL;
 }
+#endif /* HAVE_GETCWD */