summaryrefslogtreecommitdiff
path: root/libbb/bb_xdaemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/bb_xdaemon.c')
-rw-r--r--libbb/bb_xdaemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbb/bb_xdaemon.c b/libbb/bb_xdaemon.c
index b6328bc..218b524 100644
--- a/libbb/bb_xdaemon.c
+++ b/libbb/bb_xdaemon.c
@@ -6,12 +6,14 @@
*
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
+
#include <unistd.h>
#include "libbb.h"
+#ifndef BB_NOMMU
void bb_xdaemon(int nochdir, int noclose)
{
if (daemon(nochdir, noclose))
bb_perror_msg_and_die("daemon");
}
-
+#endif