From 548c1adeda26807084bdf074536234c1247ea511 Mon Sep 17 00:00:00 2001 From: Eric Le Bihan Date: Fri, 9 May 2014 21:22:04 +0200 Subject: [PATCH 1/1] 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 --- test/any2ppm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/any2ppm.c b/test/any2ppm.c index b125496..3e0806f 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])) -- 1.9.0