From: Eric Botcazou Date: Fri, 24 Oct 2025 13:44:56 +0000 (+0200) Subject: Ada: Fix warning for redefinition of POLLPRI macro on Windows X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a84fe54e808a0966592d8fb4da0c63b2df219cef;p=thirdparty%2Fgcc.git 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 --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 6b219057807..8391f1f8dd1 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. */