[PATCH] nss_db: Quash read implicit declaration warning

Marek Polacek mpolacek@redhat.com
Thu Jun 23 17:55:00 GMT 2011


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>
 



More information about the Libc-alpha mailing list