Skip to content

Commit

Permalink
2005-11-18 Paul Brook <paul@codesourcery.com>
Browse files Browse the repository at this point in the history
	* 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>.
  • Loading branch information
Roland McGrath committed Nov 18, 2005
1 parent 2b7e861 commit 0b20008
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions nscd/grpcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <stackinfo.h>

#include "nscd.h"
Expand Down
1 change: 1 addition & 0 deletions nscd/nscd_stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include <libintl.h>

Expand Down
1 change: 1 addition & 0 deletions nscd/pwdcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <time.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <stackinfo.h>

#include "nscd.h"
Expand Down
7 changes: 5 additions & 2 deletions sysdeps/unix/sysv/linux/unlinkat.c
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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>


Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0b20008

Please sign in to comment.