Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8C9C41337B81 for ; Thu, 27 Jan 2011 10:01:51 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 88201-04 for ; Thu, 27 Jan 2011 14:01:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.121]) by mail.postgresql.org (Postfix) with ESMTP id E33521337B6E for ; Thu, 27 Jan 2011 10:01:43 -0400 (AST) X-Authority-Analysis: v=1.1 cv=3jtQBdTzPyV+fq4oCU/u8ZPrJJGN11HvhaDVxyWhycI= c=1 sm=0 a=arl-9JqD9KMA:10 a=8nJEP1OIZ-IA:10 a=qCTYjJJ2g1SgQhsHZAUATw==:17 a=pGLkceISAAAA:8 a=BXvmS5-ocSjmE66HbMYA:9 a=ZYgZWmCTNCljzgMEhpkA:7 a=8qWPumNtJFvSG23hCvQCFK-UE6oA:4 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 a=qCTYjJJ2g1SgQhsHZAUATw==:117 X-Cloudmark-Score: 0 X-Originating-IP: 98.27.48.207 Received: from [98.27.48.207] ([98.27.48.207:51343] helo=[192.168.10.104]) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 31/4F-02631-0CA714D4; Thu, 27 Jan 2011 14:01:44 +0000 Message-ID: <4D417AB5.9020106@dunslane.net> Date: Thu, 27 Jan 2011 09:01:25 -0500 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Lightning/1.0b3pre Thunderbird/3.1.7 MIME-Version: 1.0 To: Robert Haas CC: Xiaobo Gu , pgsql-hackers@postgresql.org Subject: Re: Is there a way to build PostgreSQL client libraries with MinGW References: <001b01cbb8b5$3ba547b0$b2efd710$@com> <4D38F81E.9050508@dunslane.net> <4D39A53E.2040005@dunslane.net> <001201cbbb0e$6edc2ad0$4c948070$@com> <4D3CF5D7.1030107@dunslane.net> <4D3D442C.9090003@dunslane.net> <4D3D8A0B.9070301@dunslane.net> <4D3ED443.2000801@dunslane.net> <4D3EE429.5090901@dunslane.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201101/2605 X-Sequence-Number: 180442 On 01/27/2011 08:51 AM, Robert Haas wrote: > On Thu, Jan 27, 2011 at 7:31 AM, Xiaobo Gu wrote: >> 20:25: 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. cheers andrew