]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Ada: Fix warning for redefinition of POLLPRI macro on Windows
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 24 Oct 2025 13:44:56 +0000 (15:44 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 24 Oct 2025 16:52:45 +0000 (18:52 +0200)
The macro is explicitly forced to 0 on Windows.

gcc/ada/
PR ada/113516
* s-oscons-tmplt.c [_WIN32]: Undefine POLLPRI before redefining it.

gcc/ada/s-oscons-tmplt.c

index 6b219057807106a811fc20375b0bd73857045382..8391f1f8dd1cea2cc3b6331d782ca3812d0a908b 100644 (file)
@@ -1882,6 +1882,7 @@ CND(IF_NAMESIZE, "Max size of interface name with 0 terminator");
 #endif
 
 #elif defined(_WIN32)
+#undef  POLLPRI
 #define POLLPRI 0
 /*  If the POLLPRI flag is set on a socket for the Microsoft Winsock provider,
  *  the WSAPoll function will fail. */