Re: [xml] xmllib2-2.3.4 compiler warnings on QNX

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>

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:

#include <netdb.h>

  so, this should be covered too ...


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]