mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 13:00:32 +01:00
[test/any2ppm] Add feature checks for daemon()
Add the feature checks for the presence of the daemon() function call.
This commit is contained in:
parent
9304984f4e
commit
694f2eea9f
1 changed files with 5 additions and 1 deletions
|
|
@ -77,7 +77,7 @@
|
|||
#include <libspectre/spectre.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_FCNTL_H && HAVE_SIGNAL_H && HAVE_SYS_STAT_H && HAVE_SYS_SOCKET_H && HAVE_SYS_POLL_H && HAVE_SYS_UN_H
|
||||
#if HAVE_UNISTD_H && HAVE_FCNTL_H && HAVE_SIGNAL_H && HAVE_SYS_STAT_H && HAVE_SYS_SOCKET_H && HAVE_SYS_POLL_H && HAVE_SYS_UN_H
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
@ -89,7 +89,11 @@
|
|||
#define SOCKET_PATH "./.any2ppm"
|
||||
#define TIMEOUT 60000 /* 60 seconds */
|
||||
|
||||
#if _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
|
||||
#define CAN_RUN_AS_DAEMON 1
|
||||
#else
|
||||
#define CAN_RUN_AS_DAEMON 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define ARRAY_LENGTH(A) (sizeof (A) / sizeof (A[0]))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue