X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fgethostname;h=b41dfad9a747dc4cb60fab30e716caf8e0d09e16;hb=fa1db0dd22768f09a507674a30beb5b8a87bb35f;hp=7c1380764da3fe11c5d75c7758114b0bf839fa24;hpb=700f01ab76457ecb906a2f715fd8e6f839f1861c;p=gnulib.git diff --git a/modules/gethostname b/modules/gethostname index 7c1380764..b41dfad9a 100644 --- a/modules/gethostname +++ b/modules/gethostname @@ -4,18 +4,33 @@ gethostname() function: Return machine's hostname. Files: lib/gethostname.c m4/gethostname.m4 +lib/w32sock.h Depends-on: +unistd +sys_socket [test $HAVE_GETHOSTNAME = 0] +errno [test $HAVE_GETHOSTNAME = 0] +sockets [test $HAVE_GETHOSTNAME = 0] +msvc-nothrow [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: Include: + + +Link: +$(GETHOSTNAME_LIB) License: -LGPL +LGPLv2+ Maintainer: all