summaryrefslogtreecommitdiff
path: root/extra/libpciaccess/libpciaccess-0.13-io.patch
blob: e6a498d76cff639376da8aa0a110a4b09994752c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From b16336c0b389ace07f7418f5a021bfbc68fec2b6 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Mon, 05 Mar 2012 16:01:01 +0000
Subject: linux: Fix out[bwl] macros on non-I/O architectures

Signed-off-by: Adam Jackson <ajax@redhat.com>
---
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
index b817860..97fcf36 100644
--- a/src/linux_sysfs.c
+++ b/src/linux_sysfs.c
@@ -51,9 +51,9 @@
 #define inb(x) -1
 #define inw(x) -1
 #define inl(x) -1
-#define outb(x) do {} while (0)
-#define outw(x) do {} while (0)
-#define outl(x) do {} while (0)
+#define outb(x,y) do {} while (0)
+#define outw(x,y) do {} while (0)
+#define outl(x,y) do {} while (0)
 #define iopl(x) -1
 #endif
 
--
cgit v0.9.0.2-2-gbebe