Re: win32 socket definition - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: win32 socket definition
Date
Msg-id 9837222c1001061418n36222f6dp346d9d65edcaec80@mail.gmail.com
Whole thread Raw
In response to Re: win32 socket definition  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: win32 socket definition
List pgsql-hackers
On Wed, Jan 6, 2010 at 23:17, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Magnus Hagander <magnus@hagander.net> writes:
>> + /* socket has a different definition on WIN32 */
>> + #ifndef WIN32
>> + typedef char pgsocket;
>> + #else
>> + typedef SOCKET pgsocket;
>> + #endif
>
> BTW, I trust the non-windows case should be "int".

Haha, yeah, that was my attempt at producing a warning. Which didn't work :-)


-- Magnus HaganderMe: http://www.hagander.net/Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: win32 socket definition
Next
From: Tom Lane
Date:
Subject: Re: win32 socket definition