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
This commit is contained in:
Love Hörnquist Åstrand
2005-05-11 13:04:04 +00:00
parent 93a6e79201
commit 052dd71f3d

View File

@@ -107,9 +107,7 @@ struct sockaddr_dl;
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#ifdef HAVE_ERR_H
#include <err.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#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