From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 317293858C74; Sat, 20 Jan 2024 05:18:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 317293858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705727931; bh=gmaMrRsgRBkrJbHcKj7dUP4Qj+MBviYk+tIJPs/fhf0=; h=From:To:Subject:Date:From; b=G5zw21xRa0iLnoBYHmqvEaW5eCtU2WYCVotWrfG2z/YKMWAj8c+Vkq81X5Ra7oKQA g3+VXnuUQbcc8vDf9W/cwq44C2XDKwYKfhs9C//gfR24LWU8RUPXBMlaEdD3q+wbpJ kRgqbp7j0cyqi4xOxqH7ZCYqhzyGIPvE50zV/zB4= From: "nightstrike at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/113516] New: POLLPRI redefined on windows building ada Date: Sat, 20 Jan 2024 05:18:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nightstrike at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113516 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 t= he 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 | ^~~~~~~=