pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: ljwilson <ljwilson@digitalav.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Compiling psqlODBC on Windows with MS VC++ 2005 Express
Date: Tue, 21 May 2013 00:36:40 +0900
Message-ID: <519A4308.8020508@tpf.co.jp> (raw)
In-Reply-To: <1369062806627-5756204.post@n5.nabble.com>
References: <1368969814008-5756122.post@n5.nabble.com>
	<519A3A87.7070008@tpf.co.jp>
	<1369062806627-5756204.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

(2013/05/21 0:13), ljwilson wrote:
> Yes, without using the #include <winsock2.h> 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

-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Attachments:

socket_c.patch (text/x-patch, 378B) download 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 <openssl/ssl.h> #endif /* USE_SSL */ #endif /* NOT_USE_LIBPQ */ -#include "socket.h" #include "loadlib.h" #include "connection.h"

view thread (6+ messages)  latest in thread

Message-ID: <519A4308.8020508@tpf.co.jp>
Permalink:  ../519A4308.8020508@tpf.co.jp/
Also on:    postgresql.org/message-id/519A4308.8020508@tpf.co.jp

 ·  · 

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-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, ljwilson@digitalav.com
  Subject: Re: Compiling psqlODBC on Windows with MS VC++ 2005 Express
  In-Reply-To: <519A4308.8020508@tpf.co.jp>
  References: <1368969814008-5756122.post@n5.nabble.com> <519A3A87.7070008@tpf.co.jp> <1369062806627-5756204.post@n5.nabble.com> <519A4308.8020508@tpf.co.jp>

* 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