This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] nss_db: Quash read implicit declaration warning
- From: Marek Polacek <mpolacek at redhat dot com>
- To: libc-alpha <libc-alpha at sourceware dot org>
- Date: Thu, 23 Jun 2011 17:58:19 +0200
- Subject: [PATCH] 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.
2011-06-23 Marek Polacek <mpolacek@redhat.com>
* nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
--- libc/nss/nss_db/db-open.c.mp 2011-06-23 17:38:06.734574968 +0200
+++ libc/nss/nss_db/db-open.c 2011-06-23 17:38:18.522008471 +0200
@@ -22,6 +22,7 @@
#include <dlfcn.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <sys/mman.h>
#include <not-cancel.h>