about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--nss/nss_db/db-initgroups.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 85497f2c99..10288cea35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-04-06  Andreas Jaeger  <aj@suse.de>
 
+	* nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
+	strncmp	declarations.
+
 	* abilist/libc.abilist: Add __poll and __ppoll.
 
 2012-04-05  David S. Miller  <davem@davemloft.net>
diff --git a/nss/nss_db/db-initgroups.c b/nss/nss_db/db-initgroups.c
index 0d44e00b1b..e56f58a445 100644
--- a/nss/nss_db/db-initgroups.c
+++ b/nss/nss_db/db-initgroups.c
@@ -1,5 +1,5 @@
 /* Initgroups handling in nss_db module.
-   Copyright (C) 2011 Free Software Foundation, Inc.
+   Copyright (C) 2011-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gmail.com>.
 
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <grp.h>
 #include <paths.h>
+#include <string.h>
 
 #include "nss_db.h"