From 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:27:12 +0100 Subject: Sync with the latest Gnulib code (d4ec02b3cc) --- gl/m4/gethostname.m4 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gl/m4/gethostname.m4') diff --git a/gl/m4/gethostname.m4 b/gl/m4/gethostname.m4 index 63f5f636..2f743b7d 100644 --- a/gl/m4/gethostname.m4 +++ b/gl/m4/gethostname.m4 @@ -1,5 +1,6 @@ -# gethostname.m4 serial 15 -dnl Copyright (C) 2002, 2008-2023 Free Software Foundation, Inc. +# gethostname.m4 +# serial 16 +dnl Copyright (C) 2002, 2008-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -20,7 +21,7 @@ AC_DEFUN([gl_FUNC_GETHOSTNAME], AC_CACHE_CHECK([for gethostname in winsock2.h and -lws2_32], [gl_cv_w32_gethostname], [gl_cv_w32_gethostname=no - gl_save_LIBS="$LIBS" + gl_saved_LIBS="$LIBS" LIBS="$LIBS -lws2_32" AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #ifdef HAVE_WINSOCK2_H @@ -28,7 +29,7 @@ AC_DEFUN([gl_FUNC_GETHOSTNAME], #endif #include ]], [[gethostname(NULL, 0);]])], [gl_cv_w32_gethostname=yes]) - LIBS="$gl_save_LIBS" + LIBS="$gl_saved_LIBS" ]) if test "$gl_cv_w32_gethostname" = "yes"; then GETHOSTNAME_LIB="-lws2_32" -- cgit v1.2.3-74-g34f1