The sethostname module will rely on this code too, so make it a separate function.
Signed-off-by: Ben Walton <bwal...@artsci.utoronto.ca> --- m4/gethostname.m4 | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/m4/gethostname.m4 b/m4/gethostname.m4 index 8ea6329..784e40a 100644 --- a/m4/gethostname.m4 +++ b/m4/gethostname.m4 @@ -1,4 +1,4 @@ -# gethostname.m4 serial 12 +# gethostname.m4 serial 13 dnl Copyright (C) 2002, 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -40,6 +40,10 @@ AC_DEFUN([gl_FUNC_GETHOSTNAME], HAVE_GETHOSTNAME=0 fi + gl_PREREQ_HOST_NAME_MAX +]) + +AC_DEFUN([gl_PREREQ_HOST_NAME_MAX], [ dnl Also provide HOST_NAME_MAX when <limits.h> lacks it. dnl - On most Unix systems, use MAXHOSTNAMELEN from <sys/param.h> instead. dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from <netdb.h> instead. -- 1.7.4.1