X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fgethostname;h=42ee838e0914a6fa52a74f4bd63317aa87906b37;hb=99549d6d0b828b45ce540062b435c06a71b847e7;hp=e21afe6a9c0bec5cbe5651a6e5f1beb185ebe7b7;hpb=33bcc047c11586cff59d22566226e847e0c23954;p=gnulib.git diff --git a/modules/gethostname b/modules/gethostname index e21afe6a9..42ee838e0 100644 --- a/modules/gethostname +++ b/modules/gethostname @@ -8,11 +8,16 @@ lib/w32sock.h Depends-on: unistd -sys_socket -errno +sys_socket [test $HAVE_GETHOSTNAME = 0] +errno [test $HAVE_GETHOSTNAME = 0] +sockets [test $HAVE_GETHOSTNAME = 0] configure.ac: gl_FUNC_GETHOSTNAME +if test $HAVE_GETHOSTNAME = 0; then + AC_LIBOBJ([gethostname]) + gl_PREREQ_GETHOSTNAME +fi gl_UNISTD_MODULE_INDICATOR([gethostname]) Makefile.am: