[u]mount: add/update dietlibc build fix
This commit is contained in:
parent
b267ed95bc
commit
a0e17f7df6
@ -46,11 +46,11 @@
|
|||||||
#if defined(__dietlibc__)
|
#if defined(__dietlibc__)
|
||||||
/* 16.12.2006, Sampo Kellomaki (sampo@iki.fi)
|
/* 16.12.2006, Sampo Kellomaki (sampo@iki.fi)
|
||||||
* dietlibc-0.30 does not have implementation of getmntent_r() */
|
* dietlibc-0.30 does not have implementation of getmntent_r() */
|
||||||
static struct mntent *getmntent_r(FILE* stream, struct mntent* result, char* buffer, int bufsize)
|
static struct mntent *getmntent_r(FILE* stream, struct mntent* result,
|
||||||
|
char* buffer ATTRIBUTE_UNUSED, int bufsize ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
struct mntent* ment = getmntent(stream);
|
struct mntent* ment = getmntent(stream);
|
||||||
memcpy(result, ment, sizeof(struct mntent));
|
return memcpy(result, ment, sizeof(*ment));
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -11,6 +11,17 @@
|
|||||||
#include <mntent.h>
|
#include <mntent.h>
|
||||||
#include "libbb.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 */
|
/* ignored: -v -d -t -i */
|
||||||
#define OPTION_STRING "fldnra" "vdt:i"
|
#define OPTION_STRING "fldnra" "vdt:i"
|
||||||
#define OPT_FORCE (1 << 0)
|
#define OPT_FORCE (1 << 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user