Skip site navigation (1) Skip section navigation (2)

Re: Compiling libpq with VisualC

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Compiling libpq with VisualC
Date: 2004-06-20 09:28:26
Message-ID: 40D558BA.4060104@pse-consulting.de (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32pgsql-patches
Tom wrote:

>>It's there to declare struct timeval, and I'm fairly certain that diking
>>it out of the header would break things on some platforms.  Where does
>>Windows define struct timeval?
>>    
>>
struct timeval is defined in winsock.h under vc6.
I'm checking for _MSC_VER now.

>Agreed.  We define FRONTEND when compiling libpq.  Please test for that
>and send another patch.
>  
>
elog.h is included in postgres.h, which is included in many 
src/port/*.c. Many of them are pretty straight, not requiring any 
backend specific stuff, so the attached patch will change postgres.h to 
c.h for most of them.

Regards,
Andreas


Attachment: include-cleanup.patch
Description: text/plain (5.1 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Henner ZellerDate: 2004-06-20 12:09:29
Subject: JDBC prepared statements: actually not server prepared
Previous:From: Dave PageDate: 2004-06-20 08:32:33
Subject: Re: Cannot initdb in cvs tip

pgsql-patches by date

Next:From: Laurent BallesterDate: 2004-06-20 09:29:34
Subject: Re: eventlog fix
Previous:From: Dave PageDate: 2004-06-20 08:32:33
Subject: Re: Cannot initdb in cvs tip

pgsql-hackers-win32 by date

Next:From: Magnus HaganderDate: 2004-06-20 18:53:28
Subject: Data directory with trailing [back]slash
Previous:From: Andrew DunstanDate: 2004-06-20 07:12:19
Subject: Re: Cannot initdb in cvs tip

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group