std.socket undefined UnixAddress?

Rob T alanb at ucora.com
Wed Jan 23 23:02:54 PST 2013


On Thursday, 24 January 2013 at 06:47:41 UTC, Rob T wrote:
> I'm using Linux, which supports unix domain sockets, but when I 
> try to use UnixAddress it's not available.
>
> Anyone know why?
>
> import std.socket;
>
> int main()
> {
>     Address UnixAddr = new UnixAddress( "path" ); // <- compile 
> error
>     return(0);
> }
>
> Error: undefined identifier UnixAddress
>
> --rt

Looks like socket.d is missing this:

import core.sys.posix.sys.un;

I need this working asap, what's the best way to patch? Just add 
in the import?

--rt


More information about the Digitalmars-d-learn mailing list