[Bug ada/113516] macro POLLPRI redefined during GNAT build

nightstrike at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 24 16:57:11 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113516

--- Comment #3 from nightstrike <nightstrike at gmail dot com> ---
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. */


Is this the right fix? Mingw-w64 defines it to 0x400, not 0.  Is this
indicative of anotber bug, based on the comment?  Or is the comment obsolete
and maybe it's not an issue anymore?


More information about the Gcc-bugs mailing list