summaryrefslogtreecommitdiff
path: root/device_mapper/ioctl/libdm-iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'device_mapper/ioctl/libdm-iface.c')
-rw-r--r--device_mapper/ioctl/libdm-iface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/device_mapper/ioctl/libdm-iface.c b/device_mapper/ioctl/libdm-iface.c
index 738807f8f..d25b07800 100644
--- a/device_mapper/ioctl/libdm-iface.c
+++ b/device_mapper/ioctl/libdm-iface.c
@@ -139,7 +139,6 @@ static char *_align(char *ptr, unsigned int a)
return (char *) (((unsigned long) ptr + agn) & ~agn);
}
-#ifdef DM_IOCTLS
static unsigned _kernel_major = 0;
static unsigned _kernel_minor = 0;
static unsigned _kernel_release = 0;
@@ -182,6 +181,9 @@ int get_uname_version(unsigned *major, unsigned *minor, unsigned *release)
return 1;
}
+
+#ifdef DM_IOCTLS
+
/*
* Set number to NULL to populate _dm_bitset - otherwise first
* match is returned.