Blame SOURCES/make-4.2-getcwd.patch

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