[Issue 17666] std.c.linux.socket has no replacement

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 31 02:32:19 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17666

--- Comment #3 from Sebastiaan Koppe <mail at skoppe.eu> ---
(In reply to Sebastiaan Koppe from comment #2)
> Just so that you know, I am working on a PR to add them to druntime.

I am a bit stuck on the issue.

In src/core/sys/posix/netinet/in_.d there are 2 general sections, one for ipv4
and one for ipv6. In each section constants are defined for CRuntime_Glibc,
Darwin, FreeBSD, NetBSD, Solaris and linux (in that order). Except there is no
linux version for ipv6.

Which makes me wonder how things for linux can actually compile, since basic
things like in6_addr and sockaddr_in6 structures are not defined.

I suppose the CRuntime_Glibc branch is taken, but that would be invalid since
the constants differ slightly with linux.

--


More information about the Digitalmars-d-bugs mailing list