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

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



 >> 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.

                                                                 robert




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