From 73b02f98190e39c31c6479dbe9e6830392b3d18b Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Sat, 11 Nov 2017 10:12:55 -0800 Subject: Implement daemon(3) for systems that don't have it. Fixes (and based on a patch in) #369, with some reworking by @bmah888 and @pprindeville. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 04d56bc..2cb8c17 100644 --- a/configure.ac +++ b/configure.ac @@ -163,6 +163,9 @@ AC_CHECK_FUNCS([cpuset_setaffinity sched_setaffinity], AC_DEFINE([HAVE_CPU_AFFINITY], [1], [Have CPU affinity support.])) +# Check for daemon(). Most systems have this but a few (IRIX) don't. +AC_CHECK_FUNCS([daemon]) + # Check for sendfile support. FreeBSD, Linux, and MacOS all support # this system call, but they're all different in terms of what headers # it needs and what arguments it expects. -- cgit v1.2.3