diff --git a/lib/roken/daemon.c b/lib/roken/daemon.c index b8d4aa343..b4d0f562c 100644 --- a/lib/roken/daemon.c +++ b/lib/roken/daemon.c @@ -53,6 +53,8 @@ RCSID("$Id$"); #include #endif +#include "roken.h" + int daemon(nochdir, noclose) int nochdir, noclose; diff --git a/lib/roken/roken.h b/lib/roken/roken.h index 12b58879c..d3b8cf609 100644 --- a/lib/roken/roken.h +++ b/lib/roken/roken.h @@ -327,4 +327,12 @@ extern const char *__progname; void set_progname(char *argv0); +#ifdef HAVE_PATHS_H +#include +#endif + +#ifndef _PATH_DEVNULL +#define _PATH_DEVNULL "/dev/null" +#endif + #endif /* __ROKEN_H__ */ diff --git a/lib/roken/roken.h.in b/lib/roken/roken.h.in index 12b58879c..d3b8cf609 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -327,4 +327,12 @@ extern const char *__progname; void set_progname(char *argv0); +#ifdef HAVE_PATHS_H +#include +#endif + +#ifndef _PATH_DEVNULL +#define _PATH_DEVNULL "/dev/null" +#endif + #endif /* __ROKEN_H__ */