The source project of this merge request has been removed.
test: fix build when SHOULD_FORK is false
The code in test/cairo-test-runner.c properly takes into account platforms that do have fork() support, and uses the SHOULD_FORK define to know whether fork is available or not.
However, this SHOULD_FORK macro is used to guard the inclusion of <unistd.h>, which is needed to get the prototype of other functions (namely readlink and getppid), that are used in portions of this file not guarded by SHOULD_FORK.
Signed-off-by: Thomas Petazzoni thomas.petazzoni@free-electrons.com
[Retrieved from: https://git.buildroot.net/buildroot/tree/package/cairo/0001-fix-nofork-build.patch]
Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com