summaryrefslogtreecommitdiff
path: root/debian/patches/upstreamme0005-linux-net-fix-build-with-O0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/upstreamme0005-linux-net-fix-build-with-O0.patch')
-rw-r--r--debian/patches/upstreamme0005-linux-net-fix-build-with-O0.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/upstreamme0005-linux-net-fix-build-with-O0.patch b/debian/patches/upstreamme0005-linux-net-fix-build-with-O0.patch
new file mode 100644
index 0000000..169eff5
--- /dev/null
+++ b/debian/patches/upstreamme0005-linux-net-fix-build-with-O0.patch
@@ -0,0 +1,26 @@
+From 92e98a7f4d4fa75b286a067e1d1caef514fccb0d Mon Sep 17 00:00:00 2001
+From: Justus Winter <4winter@informatik.uni-hamburg.de>
+Date: Sat, 18 Jul 2015 18:52:22 +0200
+Subject: [PATCH gnumach 5/5] linux/net: fix build with -O0
+
+* linux/src/drivers/net/pci-scan.c: Avoid #erroring out.
+---
+ linux/src/drivers/net/pci-scan.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/linux/src/drivers/net/pci-scan.c b/linux/src/drivers/net/pci-scan.c
+index 60525b7..ffb7b12 100644
+--- a/linux/src/drivers/net/pci-scan.c
++++ b/linux/src/drivers/net/pci-scan.c
+@@ -31,7 +31,7 @@ static int min_pci_latency = 32;
+ #if ! defined(__KERNEL__)
+ #define __KERNEL__ 1
+ #endif
+-#if !defined(__OPTIMIZE__)
++#if !defined(__OPTIMIZE__) && /* Mach glue, we think this is ok now: */ 0
+ #warning You must compile this file with the correct options!
+ #warning See the last lines of the source file.
+ #error You must compile this driver with the proper options, including "-O".
+--
+2.1.4
+