0001-Avoid-duplicate-definitions-of-IOPortBase.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. From ce3b8a230a3805c9b557c1f106795675bd034860 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Mon, 17 Aug 2020 10:50:51 -0700
  4. Subject: [PATCH] Avoid duplicate definitions of IOPortBase
  5. This fixed build with gcc10/-fno-common
  6. Fixes
  7. compiler.h:528: multiple definition of `IOPortBase';
  8. Upstream-Status: Pending
  9. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  10. ---
  11. hw/xfree86/os-support/linux/lnx_video.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
  14. index fd83022..1d0d96e 100644
  15. --- a/hw/xfree86/os-support/linux/lnx_video.c
  16. +++ b/hw/xfree86/os-support/linux/lnx_video.c
  17. @@ -78,6 +78,7 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem)
  18. /***************************************************************************/
  19. /* I/O Permissions section */
  20. /***************************************************************************/
  21. +_X_EXPORT unsigned int IOPortBase; /* Memory mapped I/O port area */
  22. #if defined(__powerpc__)
  23. volatile unsigned char *ioBase = NULL;