aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <mpolacek@redhat.com>2011-06-24 02:57:27 -0400
committerUlrich Drepper <drepper@gmail.com>2011-06-24 02:57:27 -0400
commit07f494a027b3adea1f3cd0cd4ca7c10949cdc476 (patch)
treedd408db01660710e33f8f73b013cecdedeb20eef
parentfa3fc0fe5f452d0aa7e435d8f32e992958683819 (diff)
downloadglibc-07f494a027b3adea1f3cd0cd4ca7c10949cdc476.zip
glibc-07f494a027b3adea1f3cd0cd4ca7c10949cdc476.tar.gz
glibc-07f494a027b3adea1f3cd0cd4ca7c10949cdc476.tar.bz2
nss_db: Quash read implicit declaration warning
In the function `internal_setent' is used the function read, but the forward declaration is missing. Thusly fixed.
-rw-r--r--ChangeLog4
-rw-r--r--nss/nss_db/db-open.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ad7303f..b4d6496 100644
--- 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]
diff --git a/nss/nss_db/db-open.c b/nss/nss_db/db-open.c
index 36ce494..5a805cf 100644
--- a/nss/nss_db/db-open.c
+++ b/nss/nss_db/db-open.c
@@ -22,6 +22,7 @@
#include <dlfcn.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <sys/mman.h>
#include <not-cancel.h>