Blame SOURCES/make-4.3-getcwd.patch

b1d5fb
diff -Nrup a/src/makeint.h b/src/makeint.h
b1d5fb
--- a/src/makeint.h	2016-05-21 16:22:32.000000000 -0400
b1d5fb
+++ b/src/makeint.h	2016-09-22 16:12:38.606702160 -0400
b1d5fb
@@ -596,7 +596,7 @@ long int lseek ();
b1d5fb
 # endif
b1d5fb
 
b1d5fb
 # ifdef  HAVE_GETCWD
b1d5fb
-#  if !defined(VMS) && !defined(__DECC)
b1d5fb
+#  if !defined(VMS) && !defined(__DECC) && !defined(getcwd)
b1d5fb
 char *getcwd ();
b1d5fb
 #  endif
b1d5fb
 # else