diff -rup a/src/makeint.h b/src/makeint.h --- a/src/makeint.h 2022-10-24 02:22:00.000000000 -0400 +++ b/src/makeint.h 2022-11-01 17:20:24.764001510 -0400 @@ -678,7 +678,7 @@ long int lseek (); # endif # ifdef HAVE_GETCWD -# if !defined(VMS) && !defined(__DECC) +# if !defined(VMS) && !defined(__DECC) && !defined(getcwd) char *getcwd (void); # endif # else