From 1b0fc3aa8f51619ce45cf39ed1c27910bba3c1ac Mon Sep 17 00:00:00 2001 From: NP-Hardass Date: Mon, 24 Jul 2017 16:39:22 -0400 Subject: sys-power/bbswitch: Bump to 0.8-r1 and fix compiling w/ kernel 4.12, #623736 Package-Manager: Portage-2.3.6, Repoman-2.3.3 --- .../bbswitch/files/bbswitch-0.8-kernel-4.12.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch (limited to 'sys-power/bbswitch/files') diff --git a/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch b/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch new file mode 100644 index 000000000000..1db623d583e9 --- /dev/null +++ b/sys-power/bbswitch/files/bbswitch-0.8-kernel-4.12.patch @@ -0,0 +1,18 @@ +diff -uNr bbswitch-0.8/bbswitch.c bbswitch-0.8-new/bbswitch.c +--- bbswitch-0.8/bbswitch.c 2013-12-04 18:22:06.000000000 -0500 ++++ bbswitch-0.8-new/bbswitch.c 2017-07-08 01:11:54.588545766 -0400 +@@ -31,7 +31,14 @@ + #include + #include + #include ++#include ++ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0) ++#include ++#else + #include ++#endif ++ + #include + #include + #include -- cgit v1.2.3-65-gdbad