Skip to contentSkip to conversation

linux: don't include Xen headers in non-Xen builds

PATCH New Jan Beulich 1 participant 1 message Apr 4, 2008 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: don't include Xen headers in non-Xen builds

As usual, written and tested on 2.6.25-rc8 and made apply to the 2.6.18 tree without further testing.

fs/compat_ioctl.c +2 -0
Index: head-2008-04-02/fs/compat_ioctl.c
===================================================================
@@ -124,10 +124,12 @@
 #include <linux/dvb/video.h>
 #include <linux/lp.h>
 
+#ifdef CONFIG_XEN
 #include <xen/interface/xen.h>
 #include <xen/public/evtchn.h>
 #include <xen/public/privcmd.h>
 #include <xen/compat_ioctl.h>
+#endif
 
 /* Aiee. Someone does not find a difference between int and long */
 #define EXT2_IOC32_GETFLAGS               _IOR('f', 1, int)