[Bug 277995] devel/p4: fails to build after SHUT_RD and friend were changed to enum
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277995] devel/p4: fails to build after SHUT_RD and friend were changed to enum"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277995] devel/p4: fails to build after SHUT_RD and friend were changed to enum"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Mar 2024 18:59:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277995 Bug ID: 277995 Summary: devel/p4: fails to build after SHUT_RD and friend were changed to enum Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: antonfb@hesiod.org Flags: maintainer-feedback?(antonfb@hesiod.org) CC: antonfb@hesiod.org In https://cgit.freebsd.org/src/commit/?id=c3276e02beab8, the SHUT_RD, SHUT_WR and SHUT_RDWR constants were changed from #defines to enum values. This breaks devel/p4: net/nettcptransport.cc:821:16: error: use of undeclared identifier 'SD_SEND' 821 | shutdown( t, SD_SEND ); | ^ The code does: #if defined(SHUT_WR) // POSIX shutdown( t, SHUT_WR ); #else // Windows shutdown( t, SD_SEND ); #endif so it could be kludged around by #defining SHUT_WR, etc via CXXFLAGS. -- You are receiving this mail because: You are the assignee for the bug.