mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-06-15 23:35:50 +00:00
163ae83dc7
Reported by Michele Locati <michele@locati.it> in <https://lists.gnu.org/archive/html/bug-gettext/2026-01/msg00029.html>. * modules/gethostname (Dependencies, configure.ac): Compile gethostname.c also when UNISTD_H_HAVE_WINSOCK2_H is 1.
43 lines
983 B
Plaintext
43 lines
983 B
Plaintext
Description:
|
|
gethostname() function: Return machine's hostname.
|
|
|
|
Files:
|
|
lib/gethostname.c
|
|
m4/gethostname.m4
|
|
lib/w32sock.h
|
|
|
|
Depends-on:
|
|
unistd-h
|
|
sys_socket-h [test $HAVE_GETHOSTNAME = 0 || test $UNISTD_H_HAVE_WINSOCK2_H = 1]
|
|
errno-h [test $HAVE_GETHOSTNAME = 0 || test $UNISTD_H_HAVE_WINSOCK2_H = 1]
|
|
sockets [test $HAVE_GETHOSTNAME = 0 || test $UNISTD_H_HAVE_WINSOCK2_H = 1]
|
|
msvc-nothrow [test $HAVE_GETHOSTNAME = 0 || test $UNISTD_H_HAVE_WINSOCK2_H = 1]
|
|
strncpy [test $HAVE_GETHOSTNAME = 0]
|
|
|
|
configure.ac:
|
|
gl_FUNC_GETHOSTNAME
|
|
gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME],
|
|
[test $HAVE_GETHOSTNAME = 0 || test $UNISTD_H_HAVE_WINSOCK2_H = 1])
|
|
AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
|
|
gl_PREREQ_GETHOSTNAME
|
|
])
|
|
gl_UNISTD_MODULE_INDICATOR([gethostname])
|
|
gl_MODULE_INDICATOR([gethostname])
|
|
|
|
Makefile.am:
|
|
if GL_COND_OBJ_GETHOSTNAME
|
|
lib_SOURCES += gethostname.c
|
|
endif
|
|
|
|
Include:
|
|
<unistd.h>
|
|
|
|
Link:
|
|
$(GETHOSTNAME_LIB)
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
all
|