Bug#1135783: (fwd) Bug#1135783: libkpathsea6: kpathsea's custom getcwd stats() all siblings of all parents
Preuße, Hilmar <[email protected]> Thu, 7 May 2026 10:30:11 +0200
| Newsgroups | gmane.linux.debian.devel.tetex |
|---|---|
| Message-ID | <b69846ef-0efc-4277-9195-15b301be45af__38033.2979535282$1778142687$gmane$org@web.de> |
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
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEaXGmC/nkbIhxf16kxiZYRqvgLIsFAmn8TZQFAwAAAAAACgkQxiZYRqvgLIu9 /g//SyixcHyaKlBhKTKcNWqQ4BBPYJgskKdGoob3Rs5kEd//pGeS3sXo7RrK70ObrZ4r/itqYit7 pCIGJUK/kXvwW95TCWJIVQON1z3279gSRnLc2pGr1NaZt0myUNA+uk4F9PIpCnubSkziR1WAHk7r /tG5SCuYeuWE20ClSER/HYmihHty+xB6mJU0rBVy2bPKbwvDKuyQIud4nG6XK0rxmwP6pggTVpQ7 INCL/XxQNx6OU4hCEwz6gZgMPW7UhpdJwoFtIpl0C488z7b5mfS9ZBUmprGnNJpXeAYhm/9lDSzk R2UsNo4gdydUtS+1cu3+yw9JEAm7LIRBsy7ofr5oDVGBhfez+9+A9dnVYisJh0kiiPUwyHY9a6R2 ZcnD5BXNJ3HmItEsKR0RTCEP2q73U7nnGY6JEHLWJbZL7NchEjpqsVyWcYLUoUyAhfnml9uQBnP1 crnc1TSH4Zhu7qlvgxfpmi2IxOseUOJ4u4n0D8X/UVyfRsku2am8egxi/9xxXWwbSZzAtg79G3CT K7rL2tZjAOSva7UX4scl87r67CSU3F8nHDHo8taP1G6/PJeLBAuKy5wDGqXxKrvIcmA1KUi0r8iu uvkeiUlvt99FwiD6PV/p63ym7kVFwXPb9Cqm3m0332+WtWqay9d9NnCyO2n+3mEypSxfPQ2aQmlr 2l0= =9QAs -----END PGP SIGNATURE-----