Am 07.05.2026 um 02:56 schrieb Karl Berry:

Hello Karl,

But for now, I opted (r78924) for the smaller change of removing the
getcwd declaration altogether, and instead assuming it's declared in
<unistd.h> (where it belongs, as far as I know). Previously the test
used #include <stdlib.h>, but I think that was just a mistake.
(If it turns out to be needed, can just re-add the #include <stdlib.h>.)

Seems the "#include <stdlib.h>" is needed, else the build of the conftest.c fails:

conftest.c: In function 'fork':
conftest.c:70:64: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 70 | int fork() { exit(1); }
      |                                                                ^~~~
conftest.c:70:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   69 | #include <unistd.h>
  +++ |+#include <stdlib.h>

H.
--
sigfault

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to