aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2012-08-13 18:08:37 +0100
committerJan Beulich <JBeulich@suse.com>2012-08-13 18:08:37 +0100
commit1b7378d1b6289cc417c35bf1675d188390534643 (patch)
tree5d10bde7271bca6a97b1ac5b9838e1b9e20cd474
parent46fd612389fa7028a638ea9ad5c371b9db4e9ad1 (diff)
downloadxen-1b7378d1b6289cc417c35bf1675d188390534643.tar.gz
xen-1b7378d1b6289cc417c35bf1675d188390534643.tar.bz2
xen-1b7378d1b6289cc417c35bf1675d188390534643.zip
libxl: fix build for gcc prior to 4.3
So far all we (explicitly) require is gcc 3.4 or better, so we shouldn't be unconditionally using features supported only by much newer versions. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
-rw-r--r--tools/libxl/libxl_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index cf5d9e92df..7c3b179738 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -55,8 +55,10 @@
#ifdef LIBXL_H
# error libxl.h should be included via libxl_internal.h, not separately
#endif
-#define LIBXL_EXTERNAL_CALLERS_ONLY \
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
+# define LIBXL_EXTERNAL_CALLERS_ONLY \
__attribute__((warning("may not be called from within libxl")))
+#endif
#include "libxl.h"
#include "_paths.h"