bug-gnulib
[Top][All Lists]
Advanced

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

Re: gethostname on HP-NonStop


From: Bruno Haible
Subject: Re: gethostname on HP-NonStop
Date: Thu, 23 Dec 2010 13:42:34 +0100
User-agent: KMail/1.9.9

Joachim Schmitz wrote:
> gethostname missing (resp. not found, it is available and declared in 
> <netdb.h>), in various places. I added it to gllib/unistd.in.h
> source='test-fcntl-h-c++.cc' object='test-fcntl-h-c++.o' libtool=no  
> DEPDIR=.deps depmode=none /bin/sh ./../build-aux/depcomp  c++ -DHAVE_CONFIG_H 
> -I.   -DGNULIB_STRICT_CHECKING=1  -I. -I.  -I.. -I./..  -I../gllib 
> -I./../gllib -I/usr/local/include  -Wnowarn -c -o test-fcntl-h-c++.o 
> test-fcntl-h-c++.cc
>   _GL_CXXALIAS_SYS_CAST (gethostname, int, (char *name, size_t len));
>   ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/./../gllib/unistd.h", line 
> 972: error(363):
>           the global scope has no "gethostname"

gethostname ought to be declared in <unistd.h>, not in <netdb.h>.

Reference:
<http://pubs.opengroup.org/onlinepubs/9699919799/functions/gethostname.html>

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]