diff options
author | Eric Le Bihan <eric.le.bihan.dev@free.fr> | 2014-05-09 21:22:04 +0200 |
---|---|---|
committer | Bryce Harrington <b.harrington@samsung.com> | 2014-06-05 16:09:45 -0700 |
commit | 5741a7f2cab3548467a020c89bb7363d398f9c0d (patch) | |
tree | f9d9888240d5938df9a69348a02ff4f3b7326bf6 | |
parent | 3d94269bd427304af70ae681d5533b572d19ec3c (diff) | |
download | cairo-5741a7f2cab3548467a020c89bb7363d398f9c0d.tar.gz |
test: fix build of any2ppm if fork not available
The test program any2ppm can run as daemon. This feature can be disabled
at compile time, if the required headers are not present. However the
support for fork() is not checked.
This patch fixes this issue.
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
-rw-r--r-- | test/any2ppm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/any2ppm.c b/test/any2ppm.c index b125496e8..3e0806f58 100644 --- a/test/any2ppm.c +++ b/test/any2ppm.c @@ -92,8 +92,10 @@ #define SOCKET_PATH "./.any2ppm" #define TIMEOUT 60000 /* 60 seconds */ +#if HAVE_FORK #define CAN_RUN_AS_DAEMON 1 #endif +#endif #define ARRAY_LENGTH(A) (sizeof (A) / sizeof (A[0])) |