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 ad7303f886d84ae216530864d21f4bea7537a8c1..b4d64968867507ae6915f06e1ccd5e757cef2f6f 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 36ce494d0267935651302bdd5176187c4f45eaf4..5a805cffbf9eb6bd303b0397679946b510d81412 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>