aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-12-09 13:00:52 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-12-09 13:00:52 +0000
commit530cff8babc079a859438deae90384efe9cdb2a6 (patch)
tree8793dc3afd902c6730cda802d61d04c1eec7f039 /unmodified_drivers
parent68771db155a5d17b6bcd586ad7e5a984f360c0da (diff)
downloadxen-530cff8babc079a859438deae90384efe9cdb2a6.tar.gz
xen-530cff8babc079a859438deae90384efe9cdb2a6.tar.bz2
xen-530cff8babc079a859438deae90384efe9cdb2a6.zip
pv-on-hvm: fix for Centos 5.2
From: Yoshisato YANAGISAWA <yanagisawa.yoshisato@lab.ntt.co.jp> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'unmodified_drivers')
-rw-r--r--unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h2
-rw-r--r--unmodified_drivers/linux-2.6/overrides.mk1
2 files changed, 3 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
index fe3dc6de39..eceac2a4ff 100644
--- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
+++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
@@ -147,9 +147,11 @@ extern char *kasprintf(gfp_t gfp, const char *fmt, ...)
* RHEL_VERSION
*/
#if !defined(RHEL_VERSION) || (RHEL_VERSION == 4 && RHEL_UPDATE < 5)
+#if !defined(RHEL_MAJOR) || (RHEL_MAJOR == 4 && RHEL_MINOR < 5)
typedef irqreturn_t (*irq_handler_t)(int, void *, struct pt_regs *);
#endif
#endif
+#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
#define setup_xen_features xen_setup_features
diff --git a/unmodified_drivers/linux-2.6/overrides.mk b/unmodified_drivers/linux-2.6/overrides.mk
index 7d121ffe22..f30426eb19 100644
--- a/unmodified_drivers/linux-2.6/overrides.mk
+++ b/unmodified_drivers/linux-2.6/overrides.mk
@@ -15,3 +15,4 @@ _XEN_CPPFLAGS += -include $(objtree)/include/linux/autoconf.h
EXTRA_CFLAGS += $(_XEN_CPPFLAGS)
EXTRA_AFLAGS += $(_XEN_CPPFLAGS)
+CPPFLAGS := -I$(M)/include $(CPPFLAGS)