Seems the "#include <stdlib.h>" is needed
conftest.c:70:64: error: implicit declaration of function 'exit'
Ah yes, of course. (How aggravating that that has become an error.)
Thanks, Hille. Sorry I failed to test sufficiently.
I decided to go ahead and just remove the getcwd-forking test entirely
(r78928), since the fallback getcwd implementation isn't usable in
practice. Now Olaf's implementation will only be used if the system has
no getcwd at all, which should never happen nowadays, and if it does, oh
well. --thanks, karl.