[klibc] [PATCH] include: [mntent.h] Add MNTTYPE_SWAP definition
maximilian attems
max at stro.at
Mon Aug 29 17:29:24 PDT 2011
It is used by util-linux mount code:
mount.c:1004:30: error: ‘MNTTYPE_SWAP’ undeclared (first use in this function)
..
Signed-off-by: maximilian attems <max at stro.at>
---
usr/include/mntent.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/usr/include/mntent.h b/usr/include/mntent.h
index 210610c..104f35e 100644
--- a/usr/include/mntent.h
+++ b/usr/include/mntent.h
@@ -1,6 +1,8 @@
#ifndef _MNTENT_H
#define _MNTENT_H 1
+#define MNTTYPE_SWAP "swap"
+
struct mntent {
char *mnt_fsname; /* name of mounted file system */
char *mnt_dir; /* file system path prefix */
--
1.7.5.4
More information about the klibc
mailing list