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

Re: Compiling on 8.1.3 on Openserver 5.05

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Campbell <mark(dot)campbell(at)ucs-software(dot)co(dot)za>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Compiling on 8.1.3 on Openserver 5.05
Date: 2006-05-11 19:51:46
Message-ID: 4219.1147377106@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackerspgsql-ports
Mark Campbell <mark(dot)campbell(at)ucs-software(dot)co(dot)za> writes:
> and this in resolv.h

> /*
>  * This used to be defined in res_query.c, now it's in herror.c.  It was
>  * never extern'd by any *.h file before it was placed here.  herror.c is
>  * part of libresolv.a even though it might make more sense in libnetdb.a
>  * or even libnet.a.
>  */

> extern int h_errno;

So reading the standard isn't high on their to-do list for resolving
such questions :-(

Although you could probably fix this with #include <resolv.h>, that
seems a bit random to me.  Why don't you try this instead in
getaddrinfo.c:

	#ifndef h_errno
	extern int h_errno;
	#endif

			regards, tom lane

In response to

Responses

pgsql-ports by date

Next:From: Tom LaneDate: 2006-05-11 21:04:59
Subject: Re: solaris build problem with Sun compilers
Previous:From: Mark CampbellDate: 2006-05-11 19:47:59
Subject: Re: Compiling on 8.1.3 on Openserver 5.05

pgsql-hackers by date

Next:From: Mark WongDate: 2006-05-11 19:53:21
Subject: Re: XLOG_BLCKSZ vs. wal_buffers table
Previous:From: Martijn van OosterhoutDate: 2006-05-11 19:50:14
Subject: Re: sblock state on FreeBSD 6.1

pgsql-general by date

Next:From: Ron MayerDate: 2006-05-11 20:04:16
Subject: Re: [PERFORM] Arguments Pro/Contra Software Raid
Previous:From: Mark CampbellDate: 2006-05-11 19:47:59
Subject: Re: Compiling on 8.1.3 on Openserver 5.05

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