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>
This commit is contained in:
Andreas Jaeger 2012-04-06 21:09:36 +02:00
parent e9142a17e1
commit 2c040eff83
2 changed files with 5 additions and 1 deletions

View file

@ -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>

View 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"