Add missing include file
authorAndreas Jaeger <aj@suse.de>
Fri, 6 Apr 2012 19:09:36 +0000 (21:09 +0200)
committerAndreas Jaeger <aj@suse.de>
Fri, 6 Apr 2012 19:09:36 +0000 (21:09 +0200)
Compiling on Linux/i586 I get these warnings:
nss_db/db-initgroups.c:60:3: warning: implicit declaration of function
'strlen' [-Wimplicit-function-declaration]
nss_db/db-initgroups.c:74:7: warning: implicit declaration of function
'strncmp' [-Wimplicit-function-declaration]

Fixed with inclusion of <string.h>

ChangeLog
nss/nss_db/db-initgroups.c

index 85497f2..10288ce 100644 (file)
--- 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>
index 0d44e00..e56f58a 100644 (file)
@@ -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"