bus/pci: fix build with MinGW-w64 8
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Tue, 1 Dec 2020 16:39:59 +0000 (19:39 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Dec 2020 14:26:26 +0000 (15:26 +0100)
Fix redefinition of GUID, missing from previous versions.

Fixes: b762221ac24f ("bus/pci: support Windows with bifurcated drivers")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Tested-by: Thomas Monjalon <thomas@monjalon.net>
drivers/bus/pci/windows/pci.c

index b450346..33a5fb1 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <devpkey.h>
 
-#ifdef RTE_TOOLCHAIN_GCC
+#if defined RTE_TOOLCHAIN_GCC && (__MINGW64_VERSION_MAJOR < 8)
 #include <devpropdef.h>
 DEFINE_DEVPROPKEY(DEVPKEY_Device_Numa_Node, 0x540b947e, 0x8b40, 0x45bc,
        0xa8, 0xa2, 0x6a, 0x0b, 0x89, 0x4c, 0xbd, 0xa2, 3);