Re: Is there a way to build PostgreSQL client libraries with MinGW

From: Xiaobo Gu <guxiaobo1982(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW
Date: 2011-01-27 14:19:14
Message-ID: AANLkTin4o+7dPjLXOhCCW0+o0q2LEWvYt101JHypk=z3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Thu, Jan 27, 2011 at 10:01 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
>
>
> On 01/27/2011 08:51 AM, Robert Haas wrote:
>>
>> On Thu, Jan 27, 2011 at 7:31 AM, Xiaobo Gu<guxiaobo1982(at)gmail(dot)com>  wrote:
>>>
>>> 20:25<jon_y>: please contact psql and ask for a list of accept()
>>> implementations checked
>>
>> It looks like we check each argument and the return type for a couple
>> of possibilities:
>>
>> argument 1 can be int or unsigned int
>> argument 2 can be struct sockaddr * or const struct sockaddr * or void *
>> argument 3 can be int * or size_t * or socklen_t * or unsigned int * or
>> void *
>> the return type can be int or unsigned int PASCAL
>>
>>
>
> Yeah. it looks like the return type is the likely culprit. It looks like it
> wants either a signed or unsigned int64. Also, the mingw64 API uses the
> WSAAPI qualifier instead of PASCAL.
>

I am still trying, but I think it may be the first argument, because
MinGW64 define SOCKET as a pointer, but you accept int or unsigned int
Xiaobo Gu

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrew Dunstan 2011-01-27 14:36:31 Re: Is there a way to build PostgreSQL client libraries with MinGW
Previous Message Heikki Linnakangas 2011-01-27 14:08:42 Re: BUG #5853: when the walsender cannot exit when reboot slave computer

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2011-01-27 14:36:31 Re: Is there a way to build PostgreSQL client libraries with MinGW
Previous Message Robert Haas 2011-01-27 14:02:26 Re: ALTER TYPE 3: add facility to identify further no-work cases