diff options
author | Bruce A. Mah <bmah@kitchenlab.org> | 2017-11-11 10:12:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 10:12:55 -0800 |
commit | 73b02f98190e39c31c6479dbe9e6830392b3d18b (patch) | |
tree | 49b2da4ba227aaad9f149828c3388afaa487f910 /configure.ac | |
parent | 95d408962a9fcbd57f0fc69d915463f09ed9bdba (diff) | |
download | iperf3-73b02f98190e39c31c6479dbe9e6830392b3d18b.tar.gz |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
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. |