summaryrefslogtreecommitdiff
path: root/compat/include/linux/vga_switcheroo.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/include/linux/vga_switcheroo.h')
-rw-r--r--compat/include/linux/vga_switcheroo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/compat/include/linux/vga_switcheroo.h b/compat/include/linux/vga_switcheroo.h
new file mode 100644
index 00000000..4bda17bf
--- /dev/null
+++ b/compat/include/linux/vga_switcheroo.h
@@ -0,0 +1,12 @@
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34))
+/*
+ * XXX: The include guard was sent upstream, drop this
+ * once the guard is merged.
+ */
+#ifndef LINUX_VGA_SWITCHEROO_H /* in case this gets upstream */
+#include_next <linux/vga_switcheroo.h>
+#ifndef LINUX_VGA_SWITCHEROO_H /* do not redefine once this gets upstream */
+#define LINUX_VGA_SWITCHEROO_H
+#endif /* case 1 LINUX_VGA_SWITCHEROO_H */
+#endif /* case 2 LINUX_VGA_SWITCHEROO_H */
+#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,34)) */