summaryrefslogtreecommitdiff
path: root/gnulib/modules/gethostname
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/modules/gethostname')
m---------gnulib0
-rw-r--r--gnulib/modules/gethostname36
2 files changed, 36 insertions, 0 deletions
diff --git a/gnulib b/gnulib
deleted file mode 160000
-Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1
diff --git a/gnulib/modules/gethostname b/gnulib/modules/gethostname
new file mode 100644
index 0000000..b41dfad
--- /dev/null
+++ b/gnulib/modules/gethostname
@@ -0,0 +1,36 @@
+Description:
+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:
+<unistd.h>
+
+Link:
+$(GETHOSTNAME_LIB)
+
+License:
+LGPLv2+
+
+Maintainer:
+all