projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a7a451
)
mount: #ifdef out MOUNT_LABEL code parts if it is not selected
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 18 Mar 2008 01:44:52 +0000
(
01:44
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 18 Mar 2008 01:44:52 +0000
(
01:44
-0000)
util-linux/mount.c
patch
|
blob
|
history
diff --git
a/util-linux/mount.c
b/util-linux/mount.c
index d4a32075631dfd14b0d1eb9c98fc67b54fd35235..bd5f27b2e64e0d2690ef50cf9d7664829d46e69e 100644
(file)
--- a/
util-linux/mount.c
+++ b/
util-linux/mount.c
@@
-22,8
+22,10
@@
#include <syslog.h>
#include "libbb.h"
+#if ENABLE_FEATURE_MOUNT_LABEL
/* For FEATURE_MOUNT_LABEL only */
#include "volume_id.h"
+#endif
/* Needed for nfs support only */
#include <sys/utsname.h>
@@
-252,10
+254,12
@@
static int resolve_mount_spec(char **fsname)
{
char *tmp = NULL;
+#if ENABLE_FEATURE_MOUNT_LABEL
if (!strncmp(*fsname, "UUID=", 5))
tmp = get_devname_from_uuid(*fsname + 5);
else if (!strncmp(*fsname, "LABEL=", 6))
tmp = get_devname_from_label(*fsname + 6);
+#endif
if (tmp) {
*fsname = tmp;