From 052dd71f3de05ae7b6e5424ea545ca535643ce97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 11 May 2005 13:04:04 +0000 Subject: [PATCH] Get daemon declared on Solaris (it's in unistd.h but masked by a feature test), just to avoid a warning, since it has int args. Include err.h unconditionally, since it's always supplied. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15129 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken.h.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index c693adbc5..0b6c78e75 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -107,9 +107,7 @@ struct sockaddr_dl; #ifdef HAVE_ERRNO_H #include #endif -#ifdef HAVE_ERR_H #include -#endif #ifdef HAVE_TERMIOS_H #include #endif @@ -315,7 +313,7 @@ int ROKEN_LIB_FUNCTION initgroups(const char *name, gid_t basegid); int ROKEN_LIB_FUNCTION fchown(int fd, uid_t owner, gid_t group); #endif -#ifndef HAVE_DAEMON +#if !defined(HAVE_DAEMON) || defined(NEED_DAEMON_PROTO) int ROKEN_LIB_FUNCTION daemon(int nochdir, int noclose); #endif