> * Simon Josefsson <[EMAIL PROTECTED]> [2008-08-11 23:23:24 +0200]: > > Sam Steingold <[EMAIL PROTECTED]> writes: > >> gnulib/lib/gethostname.c says: >> >> #ifdef HAVE_UNAME >> # include <sys/utsname.h> >> #endif >> >> 1. why aren't you testing for HAVE_SYS_UTSNAME_H instead? >> >> 2. are there really systems without uname & <sys/utsname.h>, given >> that these are in posix? >> http://www.opengroup.org/onlinepubs/009695399/functions/uname.html > > I think the right solution here should be to apply the patch below. > If there are problems on any system caused by that, the solution to > that problem should be to create a module for sys/utsname.h and uname. > The gethostname module shouldn't depend on such modules, they need to > be added manually by maintainers who want compatibility with non-POSIX > systems. Thoughts?
note that gethostname is just as posix as uname, http://www.opengroup.org/onlinepubs/009695399/functions/gethostname.html so the gethostname module is only needed for non-posix systems. -- Sam Steingold (http://sds.podval.org/) on Fedora release 9 (Sulphur) http://israelunderattack.slide.com http://camera.org http://memri.org http://jihadwatch.org http://mideasttruth.com Are you smart enough to use Lisp?