Darwin is weird, and in some senses not unix, launchd doesn't want

servers to use daemon(), so its deprecated.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24424 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-01-25 00:41:48 +00:00
parent 44e0556a12
commit 4148bd6c30

View File

@@ -283,11 +283,22 @@ AC_FIND_IF_NOT_BROKEN(gai_strerror,,
#include <netdb.h>
#endif],[0])
dnl Darwin is weird, and in some senses not unix, launchd doesn't want
dnl servers to use daemon(), so its deprecated.
case "$host_os" in
darwin*)
;;
*)
AC_DEFINE([SUPPORT_DETACH], 1,
[Define if os support want to detach is daemonens.])
AC_BROKEN([daemon]) ;;
esac
AC_BROKEN([ \
chown \
copyhostent \
closefrom \
daemon \
ecalloc \
emalloc \
erealloc \