diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-07 21:47:34 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-07 21:47:34 +0000 |
commit | a1e790e72d03f38650f240c10d70eb82016870d1 (patch) | |
tree | 1b7a57fb50fb1d7013820509a7580c9497c19471 /libbb | |
parent | f4bf1f93a84089df769ec00a4b192a7be0a1c575 (diff) | |
download | busybox-w32-a1e790e72d03f38650f240c10d70eb82016870d1.tar.gz busybox-w32-a1e790e72d03f38650f240c10d70eb82016870d1.tar.bz2 busybox-w32-a1e790e72d03f38650f240c10d70eb82016870d1.zip |
bb_xdaemon() isnt available on no-mmu systems
git-svn-id: svn://busybox.net/trunk/busybox@15332 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/bb_xdaemon.c | 4 |
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 | ||
12 | void bb_xdaemon(int nochdir, int noclose) | 14 | void 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 | |