This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[patch] More missing #includes
- From: Paul Brook <paul at codesourcery dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 18 Nov 2005 18:32:58 +0000
- Subject: [patch] More missing #includes
The patch below adds some more missing #includes found when building on
m68k-linux.
Paul
2005-11-18 Paul Brook <paul@codesourcery.com>
* nscd/grpcache.c: Include sys/socket.h.
* nscd/nscd_stat.c: Ditto.
* nscd/pwdcache.c: Ditto.
* sysdeps/unix/sysv/linux/unlinkat.c: Include alloca.h and sysdep.h.
Index: nscd/grpcache.c
===================================================================
RCS file: /cvs/glibc/libc/nscd/grpcache.c,v
retrieving revision 1.40
diff -u -p -r1.40 grpcache.c
--- nscd/grpcache.c 23 Aug 2005 23:12:43 -0000 1.40
+++ nscd/grpcache.c 18 Nov 2005 17:51:41 -0000
@@ -32,6 +32,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <sys/socket.h>
#include <stackinfo.h>
#include "nscd.h"
Index: nscd/nscd_stat.c
===================================================================
RCS file: /cvs/glibc/libc/nscd/nscd_stat.c,v
retrieving revision 1.16
diff -u -p -r1.16 nscd_stat.c
--- nscd/nscd_stat.c 23 Aug 2005 23:20:21 -0000 1.16
+++ nscd/nscd_stat.c 18 Nov 2005 17:51:41 -0000
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/socket.h>
#include <unistd.h>
#include <libintl.h>
Index: nscd/pwdcache.c
===================================================================
RCS file: /cvs/glibc/libc/nscd/pwdcache.c,v
retrieving revision 1.38
diff -u -p -r1.38 pwdcache.c
--- nscd/pwdcache.c 23 Aug 2005 23:21:02 -0000 1.38
+++ nscd/pwdcache.c 18 Nov 2005 17:51:41 -0000
@@ -32,6 +32,7 @@
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
+#include <sys/socket.h>
#include <stackinfo.h>
#include "nscd.h"
Index: sysdeps/unix/sysv/linux/unlinkat.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/unlinkat.c,v
retrieving revision 1.2
diff -u -p -r1.2 unlinkat.c
--- sysdeps/unix/sysv/linux/unlinkat.c 16 Nov 2005 08:18:47 -0000 1.2
+++ sysdeps/unix/sysv/linux/unlinkat.c 18 Nov 2005 17:51:42 -0000
@@ -16,11 +16,13 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#include <alloca.h>
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
+#include <sysdep.h>
#include <unistd.h>