Re: [xml] nanohttp.c:868: `h_errno' undeclared
- From: Bjorn Reese <breese mail1 stofanet dk>
- To: "'xml gnome org'" <xml gnome org>
- Subject: Re: [xml] nanohttp.c:868: `h_errno' undeclared
- Date: Fri, 22 Mar 2002 22:46:18 +0000
Daniel Veillard wrote:
On Fri, Mar 22, 2002 at 03:20:49PM -0500, Fricault, Mark wrote:
Sorry to say, but I don't know how to answer your question reguarding the
'OS dependant platform define', as none of the 5 unix guru's here seems to
understand exactly what you're looking for. If you can tell me where I
Does that make the person with the answer a five star guru? ;)
paphio:~/XML -> gcc -v
paphio:~/XML -> grep linux /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
Or simply 'gcc -dumpspecs'
I can tell you that our OS is "SCO Openserver 5.0.06" (and this may be the
answer you're looking for).
might be "SCO"
It's never as simple as that when it comes to SCO :)
I have previously used the following with some success
#if (defined(__GNUC__) && defined(M_I386)) || (defined(_SCO_DS) ||
defined(_SCO_C_DIALECT))
The first part is for GCC, and the second part is for the native SCO compiler.
I'm sure this is the wrong way to fix this, and still remain cross-platform
compliant, but whenever the netdb.h file is included, I also include the
resolv.h file. Now the make seems to work; at lease it complete without
errors.
Okay, well I hope the change will avoid the problem on SCO in
future releases,
It will work for OpenServer 5.0.5 and later. For prior versions you have
to refer to it explictly with
extern int h_errno;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]