mount: #ifdef out MOUNT_LABEL code parts if it is not selected
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 18 Mar 2008 01:44:52 +0000 (01:44 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 18 Mar 2008 01:44:52 +0000 (01:44 -0000)
util-linux/mount.c

index d4a32075631dfd14b0d1eb9c98fc67b54fd35235..bd5f27b2e64e0d2690ef50cf9d7664829d46e69e 100644 (file)
 #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;