From a2fec37bed809eaf3a5aae336a2a2560cfac2ff3 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbap...@gmail.com>
Date: Sat, 9 Sep 2023 16:24:20 +0000
Subject: [PATCH] headers: Define missing PHYSICAL_ADDRESS type in ntddser.h

This fixes the following compiler error in chromium.

ntddser.h: At global scope:
ntddser.h:368:9: error: 'PHYSICAL_ADDRESS' does not name a type; did you mean 
'PNC_ADDRESS'?
  368 |         PHYSICAL_ADDRESS  PortAddress;
      |         ^~~~~~~~~~~~~~~~
      |         PNC_ADDRESS

Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com>
---
 mingw-w64-headers/include/ntddser.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mingw-w64-headers/include/ntddser.h 
b/mingw-w64-headers/include/ntddser.h
index fbd375f..1eebba4 100644
--- a/mingw-w64-headers/include/ntddser.h
+++ b/mingw-w64-headers/include/ntddser.h
@@ -362,6 +362,9 @@ typedef struct _SERIAL_BASIC_SETTINGS {
        ULONG  TxFifo;
 } SERIAL_BASIC_SETTINGS, *PSERIAL_BASIC_SETTINGS;
 
+#undef PHYSICAL_ADDRESS
+#define PHYSICAL_ADDRESS LARGE_INTEGER
+
 typedef struct _SERENUM_PORT_DESC {
        ULONG  Size;
        PVOID  PortHandle;
-- 
2.42.0

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to