[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] Split the HOST_NAME_MAX detection into a separate m4 macro
From: |
Ben Walton |
Subject: |
[PATCH 1/4] Split the HOST_NAME_MAX detection into a separate m4 macro |
Date: |
Fri, 2 Dec 2011 23:04:16 -0500 |
The sethostname module will rely on this code too, so make it a
separate function.
Signed-off-by: Ben Walton <address@hidden>
---
ChangeLog | 5 +++++
m4/gethostname.m4 | 9 +++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 272dded..eee02b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-01 Ben Walton <address@hidden>
+
+ * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
+ macro so it can be used by the pending sethostname module.
+
2011-11-29 Paolo Bonzini <address@hidden>
float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
diff --git a/m4/gethostname.m4 b/m4/gethostname.m4
index 8ea6329..ad93c9f 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,7 +40,12 @@ AC_DEFUN([gl_FUNC_GETHOSTNAME],
HAVE_GETHOSTNAME=0
fi
- dnl Also provide HOST_NAME_MAX when <limits.h> lacks it.
+ gl_PREREQ_HOST_NAME_MAX
+])
+
+dnl Also provide HOST_NAME_MAX when <limits.h> lacks it.
+AC_DEFUN([gl_PREREQ_HOST_NAME_MAX], [
+
dnl - On most Unix systems, use MAXHOSTNAMELEN from <sys/param.h> instead.
dnl - On Solaris, Cygwin, BeOS, use MAXHOSTNAMELEN from <netdb.h> instead.
dnl - On mingw, use 256, because
--
1.7.4.1