Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/util/virfile.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/util/virfile.c b/src/util/virfile.c
index e12a584ca1..24f866525f 100644
--- a/src/util/virfile.c
+++ b/src/util/virfile.c
@@ -57,11 +57,10 @@
# include <linux/magic.h>
# endif
# include <sys/statfs.h>
-#endif
-
-#if defined(__linux__) && HAVE_DECL_LO_FLAGS_AUTOCLEAR
-# include <linux/loop.h>
-# include <sys/ioctl.h>
+# if HAVE_DECL_LO_FLAGS_AUTOCLEAR
+# include <linux/loop.h>
+# include <sys/ioctl.h>
+# endif
#endif
#include "configmake.h"
--
2.16.2