summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Le Bihan <eric.le.bihan.dev@free.fr>2014-05-09 21:22:04 +0200
committerBryce Harrington <b.harrington@samsung.com>2014-06-05 16:09:45 -0700
commit5741a7f2cab3548467a020c89bb7363d398f9c0d (patch)
treef9d9888240d5938df9a69348a02ff4f3b7326bf6 /test
parent3d94269bd427304af70ae681d5533b572d19ec3c (diff)
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>
Diffstat (limited to 'test')
-rw-r--r--test/any2ppm.c2
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]))