This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]