This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch roland/maxhostname created. glibc-2.22-234-g0ddbbaf
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 14 Sep 2015 18:18:18 -0000
- Subject: GNU C Library master sources branch roland/maxhostname created. glibc-2.22-234-g0ddbbaf
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, roland/maxhostname has been created
at 0ddbbafd8bcdf84d467227e3c1e6fd0cebbb31c5 (commit)
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=0ddbbafd8bcdf84d467227e3c1e6fd0cebbb31c5
commit 0ddbbafd8bcdf84d467227e3c1e6fd0cebbb31c5
Author: Roland McGrath <roland@hack.frob.com>
Date: Mon Sep 14 11:15:25 2015 -0700
Use HOST_NAME_MAX for MAXHOSTNAMELEN in <sys/param.h>.
diff --git a/ChangeLog b/ChangeLog
index 33d0e1b..8f94791 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-14 Roland McGrath <roland@hack.frob.com>
+
+ * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
+ (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
+
2015-09-14 Carlos O'Donell <carlos@redhat.com>
* Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
diff --git a/misc/sys/param.h b/misc/sys/param.h
index 62b7ed2..1908b93 100644
--- a/misc/sys/param.h
+++ b/misc/sys/param.h
@@ -50,6 +50,9 @@
#if !defined NOFILE && defined OPEN_MAX
# define NOFILE OPEN_MAX
#endif
+#if !defined MAXHOSTNAMELEN && defined HOST_NAME_MAX
+# define MAXHOSTNAMELEN HOST_NAME_MAX
+#endif
#ifndef NCARGS
# ifdef ARG_MAX
# define NCARGS ARG_MAX
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources