diff options
author | Roland McGrath <roland@gnu.org> | 2005-11-18 22:42:21 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2005-11-18 22:42:21 +0000 |
commit | 0b20008e04df8a0ba4a072b34671a47c580f087e (patch) | |
tree | ddb4f06efb4a40b32660d361859109dfcf01b44c | |
parent | 2b7e8613353d693cb1ff6bd40726b61debe3fab4 (diff) | |
download | glibc-0b20008e04df8a0ba4a072b34671a47c580f087e.tar.gz glibc-0b20008e04df8a0ba4a072b34671a47c580f087e.tar.xz glibc-0b20008e04df8a0ba4a072b34671a47c580f087e.zip |
2005-11-18 Paul Brook <paul@codesourcery.com>
* nscd/grpcache.c: Include <sys/socket.h>. * nscd/nscd_stat.c: Likewise. * nscd/pwdcache.c: Likewise. * sysdeps/unix/sysv/linux/unlinkat.c: Include <stdlib.h>, <sysdep.h>.
-rw-r--r-- | nscd/grpcache.c | 1 | ||||
-rw-r--r-- | nscd/nscd_stat.c | 1 | ||||
-rw-r--r-- | nscd/pwdcache.c | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/unlinkat.c | 7 |
4 files changed, 8 insertions, 2 deletions
diff --git a/nscd/grpcache.c b/nscd/grpcache.c index 6543ef354d..3f440e9701 100644 --- a/nscd/grpcache.c +++ b/nscd/grpcache.c @@ -32,6 +32,7 @@ #include <string.h> #include <unistd.h> #include <sys/mman.h> +#include <sys/socket.h> #include <stackinfo.h> #include "nscd.h" diff --git a/nscd/nscd_stat.c b/nscd/nscd_stat.c index c1d0bffe20..7f6bd1c83e 100644 --- a/nscd/nscd_stat.c +++ b/nscd/nscd_stat.c @@ -24,6 +24,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/socket.h> #include <unistd.h> #include <libintl.h> diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c index 6b25968f71..e4ed7e97ca 100644 --- a/nscd/pwdcache.c +++ b/nscd/pwdcache.c @@ -32,6 +32,7 @@ #include <time.h> #include <unistd.h> #include <sys/mman.h> +#include <sys/socket.h> #include <stackinfo.h> #include "nscd.h" diff --git a/sysdeps/unix/sysv/linux/unlinkat.c b/sysdeps/unix/sysv/linux/unlinkat.c index 36c0215b48..821029f5e5 100644 --- a/sysdeps/unix/sysv/linux/unlinkat.c +++ b/sysdeps/unix/sysv/linux/unlinkat.c @@ -1,4 +1,5 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. +/* unlinkat -- Remove a link by relative name. + Copyright (C) 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +21,9 @@ #include <fcntl.h> #include <stddef.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> +#include <sysdep.h> #include <unistd.h> @@ -51,7 +54,7 @@ unlinkat (fd, file, flag) due to the format elements compensates for possible negative numbers. */ size_t buflen = sizeof (procfd) + sizeof (int) * 3 + filelen; - buf = alloca (buflen); + buf = __alloca (buflen); __snprintf (buf, buflen, procfd, fd, file); file = buf; |