Hurd: Add missing includes
authorThomas Schwinge <thomas@schwinge.name>
Thu, 10 May 2012 22:13:54 +0000 (15:13 -0700)
committerRoland McGrath <roland@hack.frob.com>
Thu, 10 May 2012 22:57:25 +0000 (15:57 -0700)
ChangeLog
nss/makedb.c
nss/nss_db/db-initgroups.c

index c568aec..9a62ca4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
+
+       * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
+       <sys/uio.h> (for writev).
+       * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
+       and <sys/param.h> (for MIN).
+
 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
 
        * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
index d4ac16e..5c073a7 100644 (file)
@@ -1,5 +1,5 @@
 /* Create simple DB database from textual input.
-   Copyright (C) 1996-2000, 2011, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1996-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -32,7 +32,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/mman.h>
+#include <sys/param.h>
 #include <sys/stat.h>
+#include <sys/uio.h>
 #include "nss_db/nss_db.h"
 
 /* Get libc version number.  */
index e56f58a..16eb8e2 100644 (file)
 #include <ctype.h>
 #include <errno.h>
 #include <grp.h>
+#include <limits.h>
 #include <paths.h>
 #include <string.h>
+#include <sys/param.h>
 
 #include "nss_db.h"