summary refs log tree commit diff
path: root/nss/nss_db
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-04-06 21:09:36 +0200
committerAndreas Jaeger <aj@suse.de>2012-04-06 21:09:36 +0200
commit2c040eff839ff8c2b1b1c3ab0f6cbb30976ce87a (patch)
tree88f4b23fd099f2a031f0526e273989f967228063 /nss/nss_db
parente9142a17e1deb881638e60f14054a69075587c75 (diff)
downloadglibc-2c040eff839ff8c2b1b1c3ab0f6cbb30976ce87a.tar.gz
glibc-2c040eff839ff8c2b1b1c3ab0f6cbb30976ce87a.tar.xz
glibc-2c040eff839ff8c2b1b1c3ab0f6cbb30976ce87a.zip
Add missing include file
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>
Diffstat (limited to 'nss/nss_db')
-rw-r--r--nss/nss_db/db-initgroups.c3
1 files changed, 2 insertions, 1 deletions
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"