Blame SOURCES/make-4.2-getcwd.patch

b7955a
diff -Nrup a/makeint.h b/makeint.h
b7955a
--- a/makeint.h	2016-05-21 16:22:32.000000000 -0400
b7955a
+++ b/makeint.h	2017-06-08 23:00:34.957343608 -0400
b7955a
@@ -596,7 +596,7 @@ long int lseek ();
b7955a
 # endif
b7955a
 
b7955a
 # ifdef  HAVE_GETCWD
b7955a
-#  if !defined(VMS) && !defined(__DECC)
b7955a
+#  if !defined(VMS) && !defined(__DECC) && !defined(getcwd)
b7955a
 char *getcwd ();
b7955a
 #  endif
b7955a
 # else