October 17, 2007 Re: x86-64 Tango | ||||
---|---|---|---|---|
| ||||
I don't know where the correct values are, I've looked in sys/socket.h
Lars Ivar Igesund Wrote:
> doob wrote:
>
> > I had no idea I should set -version=Posix, but that didn't make any difference. Line 57 in tango.sys.linux.socket:
> >
> > version( X86 )
> > {
> > enum: int
> > {
> > SOL_SOCKET = 1,
> > }
> > }
> > else
> > {
> > // Different values on other platforms.
> > static assert(0);
> > }
> >
> > There is no "version (X86_64)" so it won't compile, doesn't matter if
> > "-version=Posix" is set or not.
>
> Could you create a patch with the correct values, if they are available to you?
>
> --
> Lars Ivar Igesund
> blog at http://larsivi.net
> DSource, #d.tango & #D: larsivi
> Dancing the Tango
|
October 17, 2007 Re: x86-64 Tango | ||||
---|---|---|---|---|
| ||||
Posted in reply to doob | doob wrote:
> I don't know where the correct values are, I've looked in sys/socket.h
>
> Lars Ivar Igesund Wrote:
>
>
>>doob wrote:
>>
>>
>>>I had no idea I should set -version=Posix, but that didn't make any
>>>difference. Line 57 in tango.sys.linux.socket:
>>>
>>>version( X86 )
>>>{
>>>enum: int
>>>{
>>>SOL_SOCKET = 1,
>>>}
>>>}
>>>else
>>>{
>>>// Different values on other platforms.
>>>static assert(0);
>>>}
>>>
>>>There is no "version (X86_64)" so it won't compile, doesn't matter if
>>>"-version=Posix" is set or not.
>>
>>Could you create a patch with the correct values, if they are available to
>>you?
>>
>>--
>>Lars Ivar Igesund
>>blog at http://larsivi.net
>>DSource, #d.tango & #D: larsivi
>>Dancing the Tango
>
>
generate a c file with the needed includes and:
int i = SOL_SOCKET;
run it through cpp (the c preprocessor) and look at the last tine
or use
printf("%d\n", SOL_SOCKET);
|
Copyright © 1999-2021 by the D Language Foundation