Whamcloud - gitweb
LU-7704 utils: check LOOP_CTL_GET_FREE aginst target kernel
[fs/lustre-release.git] / lustre / utils / mount_utils.c
index 9d8e232..2289b72 100644 (file)
@@ -365,7 +365,7 @@ int loop_setup(struct mkfs_opts *mop)
                char cmd[PATH_MAX];
                int cmdsz = sizeof(cmd);
 
-#ifdef LOOP_CTL_GET_FREE
+#ifdef HAVE_LOOP_CTL_GET_FREE
                ret = open("/dev/loop-control", O_RDWR);
                if (ret < 0) {
                        fprintf(stderr, "%s: can't access loop control\n", progname);