[Issue 24417] core.sys.posix.sys.select: fds_bits named __fds_bits on FreeBSD
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 28 04:43:25 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24417
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@jmdavis created dlang/dmd pull request #16261 "Fix bugzilla issue 24417:
fds_bits named incorrectly on FreeBSD" fixing this issue:
- Fix bugzilla issue 24417: fds_bits named incorrectly on FreeBSD
This fixes the name of fds_bits on FreeBSD - or actually, on all of the
BSDs listed in select.d. The way that they're declared in C is with a
member named __fds_bits and then a #define for fds_bits. The D
declarations managed to copy the struct declarations with the __ name
but didn't add aliases to correspond to the #defines.
The standard name is fds_bits and is what any user code should be using,
so I don't see any reason to have the __ versions other than to avoid
breaking any code that used the __ versions, because that's what was
there. So, I fixed the names and added deprecated aliases for the old
ones.
https://github.com/dlang/dmd/pull/16261
--
More information about the Digitalmars-d-bugs
mailing list