[libvirt] [PATCH 10/35] util: file: Use only one #ifdef for __linux__

Peter Krempa pkrempa at redhat.com
Wed Apr 25 15:15:18 UTC 2018


Signed-off-by: Peter Krempa <pkrempa at 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




More information about the libvir-list mailing list