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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux