1 test: fix build when SHOULD_FORK is false
3 The code in test/cairo-test-runner.c properly takes into account
4 platforms that do have fork() support, and uses the SHOULD_FORK define
5 to know whether fork is available or not.
7 However, this SHOULD_FORK macro is used to guard the inclusion of
8 <unistd.h>, which is needed to get the prototype of other functions
9 (namely readlink and getppid), that are used in portions of this file
10 not guarded by SHOULD_FORK.
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 Index: b/test/cairo-test-runner.c
15 ===================================================================
16 --- a/test/cairo-test-runner.c
17 +++ b/test/cairo-test-runner.c
19 #include <pixman.h> /* for version information */
21 #define SHOULD_FORK HAVE_FORK && HAVE_WAITPID