From 564e7d38a2ac686d7dee02761c5b4c7a5cff0a51 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 7 Mar 2013 16:34:54 +0000 Subject: [PATCH] Don't import loop.h unless HAVE_DECL_LO_FLAGS_AUTOCLEAR is defined The loop.h on RHEL4 is broken and cannot be imported. We already detect this in configure as a side-effect of looking for whether LO_FLAGS_AUTOCLEAR is available. We protected the impl with HAVE_DECL_LO_FLAGS_AUTOCLEAR, but not the header import Signed-off-by: Daniel P. Berrange --- src/util/virfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virfile.c b/src/util/virfile.c index eec9bccafa..4a9fa811b2 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -32,7 +32,7 @@ #include #include -#ifdef __linux__ +#if defined(__linux__) && HAVE_DECL_LO_FLAGS_AUTOCLEAR # include # include #endif -- 2.47.2