X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fgethostname;h=42ee838e0914a6fa52a74f4bd63317aa87906b37;hb=cdf12ee48247d39e7b1fd40289b78741aa4d4df1;hp=c61b5a9701f0165c15214767eabdadee26b1fa19;hpb=20491bb197b77a1fb32516f65732d168c4cf07d3;p=gnulib.git diff --git a/modules/gethostname b/modules/gethostname index c61b5a970..42ee838e0 100644 --- a/modules/gethostname +++ b/modules/gethostname @@ -4,13 +4,20 @@ gethostname() function: Return machine's hostname. Files: lib/gethostname.c m4/gethostname.m4 -m4/sys_socket_h.m4 +lib/w32sock.h Depends-on: unistd +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: @@ -18,8 +25,11 @@ Makefile.am: Include: +Link: +$(GETHOSTNAME_LIB) + License: -LGPL +LGPLv2+ Maintainer: all