pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Xiaobo Gu <guxiaobo1982@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW
Date: Thu, 27 Jan 2011 09:36:31 -0500
Message-ID: <4D4182EF.5080709@dunslane.net> (raw)
In-Reply-To: <AANLkTin4o+7dPjLXOhCCW0+o0q2LEWvYt101JHypk=z3@mail.gmail.com>
References: <001b01cbb8b5$3ba547b0$b2efd710$@com>
	<4D38F81E.9050508@dunslane.net>
	<AANLkTi=AwssKV7xTyWrztrggfht693vQcSQWrcbTY2Pd@mail.gmail.com>
	<4D39A53E.2040005@dunslane.net>
	<001201cbbb0e$6edc2ad0$4c948070$@com>
	<AANLkTikjq9dNEK_tZpQfha50Xzkp4RSE-KmYxTB622qa@mail.gmail.com>
	<4D3CF5D7.1030107@dunslane.net>
	<AANLkTikH+A96iw4VunGerGw7cBLsLVucLXwh_UDLjBGm@mail.gmail.com>
	<4D3D442C.9090003@dunslane.net>
	<AANLkTikTTqCa_Yd9wfOvRuhT6sUdSFEDU9FWyZWSDGCg@mail.gmail.com>
	<4D3D8A0B.9070301@dunslane.net>
	<AANLkTi=uFWSAW2D=JWTW6pAgEZRCAbACz4CTQy7KvrSJ@mail.gmail.com>
	<AANLkTinhNqAuhOH1SGtVw+8cnb7Fxx6ZL4-Ke_gftTAY@mail.gmail.com>
	<4D3ED443.2000801@dunslane.net>
	<AANLkTikTXuZSh=aLQxZuT0UYR5501EJ6wgnd-+cwyV2y@mail.gmail.com>
	<4D3EE429.5090901@dunslane.net>
	<AANLkTikOC-Sh1sW5shpCAgsQ=GUWyUwkewhDYG81tSqB@mail.gmail.com>
	<AANLkTi=J2JNi7QZc=LuNCo4QZ=woQNvJw7mSYcY98a8e@mail.gmail.com>
	<4D417AB5.9020106@dunslane.net>
	<AANLkTin4o+7dPjLXOhCCW0+o0q2LEWvYt101JHypk=z3@mail.gmail.com>



On 01/27/2011 09:19 AM, Xiaobo Gu wrote:
> On Thu, Jan 27, 2011 at 10:01 PM, Andrew Dunstan<andrew@dunslane.net>  wrote:
>>
>> On 01/27/2011 08:51 AM, Robert Haas wrote:
>>> On Thu, Jan 27, 2011 at 7:31 AM, Xiaobo Gu<guxiaobo1982@gmail.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
>

No it doesn't. It defines it as an INT_PTR or UINT_PTR which in turn is 
an __int64, I think. But you're right, we might need to look at the 
first argument as well as the return type.

cheers

andrew



view thread (25+ messages)  latest in thread

Message-ID: <4D4182EF.5080709@dunslane.net>
Permalink:  ../4D4182EF.5080709@dunslane.net/
Also on:    postgresql.org/message-id/4D4182EF.5080709@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@dunslane.net, guxiaobo1982@gmail.com, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW
  In-Reply-To: <4D4182EF.5080709@dunslane.net>
  References: <001b01cbb8b5$3ba547b0$b2efd710$@com> <AANLkTi=AwssKV7xTyWrztrggfht693vQcSQWrcbTY2Pd@mail.gmail.com> <4D39A53E.2040005@dunslane.net> <001201cbbb0e$6edc2ad0$4c948070$@com> <AANLkTikjq9dNEK_tZpQfha50Xzkp4RSE-KmYxTB622qa@mail.gmail.com> <4D3CF5D7.1030107@dunslane.net> <AANLkTikH+A96iw4VunGerGw7cBLsLVucLXwh_UDLjBGm@mail.gmail.com> <4D3D442C.9090003@dunslane.net> <AANLkTikTTqCa_Yd9wfOvRuhT6sUdSFEDU9FWyZWSDGCg@mail.gmail.com> <4D3D8A0B.9070301@dunslane.net> <AANLkTi=uFWSAW2D=JWTW6pAgEZRCAbACz4CTQy7KvrSJ@mail.gmail.com> <AANLkTinhNqAuhOH1SGtVw+8cnb7Fxx6ZL4-Ke_gftTAY@mail.gmail.com> <4D3ED443.2000801@dunslane.net> <AANLkTikTXuZSh=aLQxZuT0UYR5501EJ6wgnd-+cwyV2y@mail.gmail.com> <4D3EE429.5090901@dunslane.net> <AANLkTikOC-Sh1sW5shpCAgsQ=GUWyUwkewhDYG81tSqB@mail.gmail.com> <AANLkTi=J2JNi7QZc=LuNCo4QZ=woQNvJw7mSYcY98a8e@mail.gmail.com> <4D417AB5.9020106@dunslane.net> <AANLkTin4o+7dPjLXOhCCW0+o0q2LEWvYt101JHypk=z3@mail.gmail.com> <4D4182EF.5080709@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox