[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] xmllib2-2.3.4 compiler warnings on QNX
- From: Daniel Veillard <veillard redhat com>
- To: robert <robert xml 00008 org>
- Cc: xml rufus w3 org
- Subject: Re: [xml] xmllib2-2.3.4 compiler warnings on QNX
- Date: Fri, 23 Mar 2001 05:29:42 -0500
On Fri, Mar 23, 2001 at 10:38:51AM +0100, robert wrote:
> >> nanoftp.c(140): Warning! W301: No prototype found for 'gethostname'
> >GETHOSTNAME(2) Linux Programmer's Manual GETHOSTNAME(2)
> >...
> > #include <unistd.h>
> >...
> >nanoftp.c: line 33 to 35 :
> >#ifdef HAVE_UNISTD_H
> >#include <unistd.h>
> >#endif
>
> On Solaris, IRIX and FreeBSD the prototype resides in <netdb.h>. Linux
> isn't too portable with regards to include-files, I'm afraid.
Well nanoftp.c also does:
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
so, this should be covered too ...
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]