Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UeS91-0004pS-QW for pgsql-odbc@arkaria.postgresql.org; Mon, 20 May 2013 15:37:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UeS90-0002gu-Si for pgsql-odbc@arkaria.postgresql.org; Mon, 20 May 2013 15:37:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UeS8z-0002ft-6o for pgsql-odbc@postgresql.org; Mon, 20 May 2013 15:37:01 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UeS8r-0006dj-Cm for pgsql-odbc@postgresql.org; Mon, 20 May 2013 15:37:00 +0000 Received: (qmail 16840 invoked by uid 512); 20 May 2013 15:36:48 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 20 May 2013 15:36:48 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.25.94) by sd.tpf.co.jp with SMTP; 20 May 2013 15:36:48 -0000 Message-ID: <519A4308.8020508@tpf.co.jp> Date: Tue, 21 May 2013 00:36:40 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: ljwilson CC: pgsql-odbc@postgresql.org Subject: Re: Compiling psqlODBC on Windows with MS VC++ 2005 Express References: <1368969814008-5756122.post@n5.nabble.com> <519A3A87.7070008@tpf.co.jp> <1369062806627-5756204.post@n5.nabble.com> In-Reply-To: <1369062806627-5756204.post@n5.nabble.com> Content-Type: multipart/mixed; boundary="------------070402000305050006050800" X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --------------070402000305050006050800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit (2013/05/21 0:13), ljwilson wrote: > Yes, without using the #include fix: Maybe the attached patch will fix the compilation errors. regards, Hiroshi Inoue > socket.c > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\ws2def.h(91) : warning C4005: 'AF_IPX' : macro > redefinition > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\winsock.h(460) : see previous definition of > 'AF_IPX' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\ws2def.h(131) : warning C4005: 'AF_MAX' : macro > redefinition > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\winsock.h(479) : see previous definition of > 'AF_MAX' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\ws2def.h(168) : warning C4005: 'SO_DONTLINGER' : > macro redefinition > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\winsock.h(402) : see previous definition of > 'SO_DONTLINGER' > C:\Program Files\Microsoft Visual Studio > 8\VC\PlatformSDK\include\ws2def.h(212) : error C2011: 'sockaddr' : 'struct' > type redefinition --------------070402000305050006050800 Content-Type: text/x-patch; name="socket_c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="socket_c.patch" diff --git a/socket.c b/socket.c index 42bffa4..9070f02 100644 --- a/socket.c +++ b/socket.c @@ -12,7 +12,7 @@ *------- */ -#include "psqlodbc.h" +#include "socket.h" #ifdef USE_SSPI #include "sspisvcs.h" @@ -26,7 +26,6 @@ #include #endif /* USE_SSL */ #endif /* NOT_USE_LIBPQ */ -#include "socket.h" #include "loadlib.h" #include "connection.h" --------------070402000305050006050800 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc --------------070402000305050006050800--