diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-26 05:19:53 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-26 05:19:53 +0400 |
commit | a0e17f7df6d4c65ecab7339e9899b294ff8bc04e (patch) | |
tree | 6a78ba6cbfadf1eed88d81c2323138bdddb7da70 /util-linux/umount.c | |
parent | b267ed95bc8141dbf14b276d4aef0fb8e2f5dda7 (diff) |
[u]mount: add/update dietlibc build fix
Diffstat (limited to 'util-linux/umount.c')
-rw-r--r-- | util-linux/umount.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/util-linux/umount.c b/util-linux/umount.c index 34c979e0c..9fa3cd2d3 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -11,6 +11,17 @@ #include <mntent.h> #include "libbb.h" +#if defined(__dietlibc__) +/* 16.12.2006, Sampo Kellomaki (sampo@iki.fi) + * dietlibc-0.30 does not have implementation of getmntent_r() */ +static struct mntent *getmntent_r(FILE* stream, struct mntent* result, + char* buffer ATTRIBUTE_UNUSED, int bufsize ATTRIBUTE_UNUSED) +{ + struct mntent* ment = getmntent(stream); + return memcpy(result, ment, sizeof(*ment)); +} +#endif + /* ignored: -v -d -t -i */ #define OPTION_STRING "fldnra" "vdt:i" #define OPT_FORCE (1 << 0) |