nss_db: Quash read implicit declaration warning
authorMarek Polacek <mpolacek@redhat.com>
Fri, 24 Jun 2011 06:57:27 +0000 (02:57 -0400)
committerUlrich Drepper <drepper@gmail.com>
Fri, 24 Jun 2011 06:57:27 +0000 (02:57 -0400)
In the function `internal_setent' is used the function read, but the forward
declaration is missing.  Thusly fixed.

ChangeLog
nss/nss_db/db-open.c

index ad7303f..b4d6496 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-23  Marek Polacek  <mpolacek@redhat.com>
+
+       * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
+
 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
 
        [BZ #12907]
index 36ce494..5a805cf 100644 (file)
@@ -22,6 +22,7 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <sys/mman.h>
 #include <not-cancel.h>