[PATCH xserver] compiler.h: ensure IOPortBase is declared extern on mips

Ariadne Conill ariadne at dereferenced.org
Fri Sep 4 00:02:52 UTC 2020


This is needed to fix compilation with -fcommon on GCC, which
is the default in GCC 10.

Signed-off-by: Ariadne Conill <ariadne at dereferenced.org>
---
 hw/xfree86/common/compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
index 2b2008b3f..c7d617eb1 100644
--- a/hw/xfree86/common/compiler.h
+++ b/hw/xfree86/common/compiler.h
@@ -525,7 +525,7 @@ xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset,
 #define PORT_SIZE short
 #endif
 
-_X_EXPORT unsigned int IOPortBase;      /* Memory mapped I/O port area */
+extern _X_EXPORT unsigned int IOPortBase;      /* Memory mapped I/O port area */
 
 static __inline__ void
 outb(unsigned PORT_SIZE port, unsigned char val)
-- 
2.28.0



More information about the xorg-devel mailing list