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

            Bug ID: 113516
           Summary: POLLPRI redefined on windows building ada
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nightstrike at gmail dot com
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

g:r11-4313-gd08d481912b9a2 defined POLLPRI to zero on Windows, stating in the
commit message "Define POLLPRI as zero on Windows as it is not supported
there."  However, it is defined on mingw-w64 targets, resulting in a build
warning:

/tmp/gcc/src/gcc-git/gcc/ada/s-oscons-tmplt.c:1871:9: warning: "POLLPRI"
redefined
 1871 | #define POLLPRI 0
      |         ^~~~~~~
In file included from /tmp/gcc/src/gcc-git/gcc/ada/gsocket.h:83,
                 from /tmp/gcc/src/gcc-git/gcc/ada/s-oscons-tmplt.c:103:
/tmp/rt/mingw14/x86_64-w64-mingw32/include/winsock2.h:1182:9: note: this is the
location of the previous definition
 1182 | #define POLLPRI    0x0400
      |         ^~~~~~~
  • [Bug ada/113516] New: POLLPRI re... nightstrike at gmail dot com via Gcc-bugs

Reply via email to