https://gcc.gnu.org/g:a84fe54e808a0966592d8fb4da0c63b2df219cef
commit r16-4607-ga84fe54e808a0966592d8fb4da0c63b2df219cef Author: Eric Botcazou <[email protected]> Date: Fri Oct 24 15:44:56 2025 +0200 Ada: Fix warning for redefinition of POLLPRI macro on Windows The macro is explicitly forced to 0 on Windows. gcc/ada/ PR ada/113516 * s-oscons-tmplt.c [_WIN32]: Undefine POLLPRI before redefining it. Diff: --- gcc/ada/s-oscons-tmplt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 6b2190578071..8391f1f8dd1c 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -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. */
