aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2011-08-30 02:26:01 +0200
committermaximilian attems <max@stro.at>2011-08-30 11:37:05 +0200
commitee8d5635fb901bd19d5919c9407c30db2e6a5051 (patch)
treee606c27d546de564849f302998798da14678fbdf
parent1a4d6425459e006167270dc46466bb818d98fd69 (diff)
downloadklibc-ee8d5635fb901bd19d5919c9407c30db2e6a5051.tar.gz
[klibc] include: [mntent.h] Add MNTTYPE_SWAP definition
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@stro.at>
-rw-r--r--usr/include/mntent.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/include/mntent.h b/usr/include/mntent.h
index 210610cbd12de..104f35e5479a4 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 */