bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] Split the HOST_NAME_MAX detection into separate m4 macro


From: Ben Walton
Subject: [PATCH 1/3] Split the HOST_NAME_MAX detection into separate m4 macro
Date: Tue, 29 Nov 2011 20:45:02 -0500

The sethostname module will rely on this code too, so make it a
separate function.

Signed-off-by: Ben Walton <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]