aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-07 21:47:34 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-07 21:47:34 +0000
commitca70774293a3ebb0f1ca4b0626b135cc74cfdea8 (patch)
tree1b7a57fb50fb1d7013820509a7580c9497c19471
parent373af43bb06c70a6728e136a2f8c4d21989c3514 (diff)
downloadbusybox-w32-ca70774293a3ebb0f1ca4b0626b135cc74cfdea8.tar.gz
busybox-w32-ca70774293a3ebb0f1ca4b0626b135cc74cfdea8.tar.bz2
busybox-w32-ca70774293a3ebb0f1ca4b0626b135cc74cfdea8.zip
bb_xdaemon() isnt available on no-mmu systems
-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 b6328bc9f..218b5247f 100644
--- a/libbb/bb_xdaemon.c
+++ b/libbb/bb_xdaemon.c
@@ -6,12 +6,14 @@
6 * 6 *
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9
9#include <unistd.h> 10#include <unistd.h>
10#include "libbb.h" 11#include "libbb.h"
11 12
13#ifndef BB_NOMMU
12void bb_xdaemon(int nochdir, int noclose) 14void bb_xdaemon(int nochdir, int noclose)
13{ 15{
14 if (daemon(nochdir, noclose)) 16 if (daemon(nochdir, noclose))
15 bb_perror_msg_and_die("daemon"); 17 bb_perror_msg_and_die("daemon");
16} 18}
17 19#endif