X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fgethostname;h=42ee838e0914a6fa52a74f4bd63317aa87906b37;hb=fc1861afb83184cfb975428a9710e90aa3252854;hp=7c1380764da3fe11c5d75c7758114b0bf839fa24;hpb=700f01ab76457ecb906a2f715fd8e6f839f1861c;p=gnulib.git diff --git a/modules/gethostname b/modules/gethostname index 7c1380764..42ee838e0 100644 --- a/modules/gethostname +++ b/modules/gethostname @@ -4,18 +4,32 @@ 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] 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