[Glibc-bsd-commits] r3460 - trunk/glibc-ports/kfreebsd/bits
Robert Millan
rmh at alioth.debian.org
Fri Jun 17 09:37:39 UTC 2011
Author: rmh
Date: 2011-06-17 09:37:39 +0000 (Fri, 17 Jun 2011)
New Revision: 3460
Modified:
trunk/glibc-ports/kfreebsd/bits/local_lim.h
Log:
define HOST_NAME_MAX in <bits/local_lim.h> (<limits.h> is expected to provide this macro)
Modified: trunk/glibc-ports/kfreebsd/bits/local_lim.h
===================================================================
--- trunk/glibc-ports/kfreebsd/bits/local_lim.h 2011-06-17 08:03:35 UTC (rev 3459)
+++ trunk/glibc-ports/kfreebsd/bits/local_lim.h 2011-06-17 09:37:39 UTC (rev 3460)
@@ -1 +1,25 @@
-#include <sys/syslimits.h>
+/* Minimum guaranteed maximum values for system limits. kFreeBSD version.
+ Copyright (C) 2011 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#include <sys/param.h>
+
+/* BSD userland provides MAXHOSTNAMELEN via <sys/param.h>. GNU
+ userland provides HOST_NAME_MAX via <limits.h>. This makes
+ both worlds happy. */
+#define HOST_NAME_MAX MAXHOSTNAMELEN
More information about the Glibc-bsd-commits
mailing list