This is part of an attempt to make libmount buildable on non-linux.
The support for /dev/loop* is Linux-specific so just disable
it on non-linux for now.
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
if (!pretty)
return strdup("none");
+#ifdef __linux__
/* users assume backing file name rather than /dev/loopN in
* output if the device has been initialized by mount(8).
*/
loopcxt_deinit(&lc);
}
+#endif
done:
/* don't return pointer to the cache, allocate a new string */
} else
flags = LOOPDEV_FL_OFFSET;
+#if __linux__
if (loopdev_is_used(mnt_fs_get_srcpath(fs), src, offset, flags))
break;
+#endif
}
if (root) {