From 37233df9d1fa7a1a6ff3a72ce4f642b1a96de9ca Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 10 May 2012 14:39:53 -0700 Subject: Hurd: #include --- ChangeLog | 10 ++++++++++ libio/fileops.c | 4 ++-- libio/freopen.c | 5 +++-- libio/freopen64.c | 5 +++-- misc/syslog.c | 2 ++ nscd/connections.c | 7 +++---- nscd/netgroupcache.c | 7 +++---- sysdeps/posix/getcwd.c | 3 ++- 8 files changed, 28 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e71ac6..279fbd6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2012-05-10 Thomas Schwinge + + * libio/fileops.c: Unconditionally include . + * libio/freopen.c: Likewise. + * libio/freopen64.c: Likewise. + * misc/syslog.c: Likewise. + * nscd/connections.c: Likewise. + * nscd/netgroupcache.c: Likewise. + * sysdeps/posix/getcwd.c: Likewise. + 2012-05-10 Roland McGrath * math/w_ilogbf.c: Add #include . diff --git a/libio/fileops.c b/libio/fileops.c index a2e8dac..93750f8 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -1,5 +1,4 @@ -/* Copyright (C) 1993, 1995, 1997-2005, 2006, 2007, 2008, 2009, 2011-2012 - Free Software Foundation, Inc. +/* Copyright (C) 1993-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Per Bothner . @@ -46,6 +45,7 @@ # include "../iconv/gconv_int.h" # include # include +# include #endif #ifndef errno extern int errno; diff --git a/libio/freopen.c b/libio/freopen.c index 418f412..025c55b 100644 --- a/libio/freopen.c +++ b/libio/freopen.c @@ -1,5 +1,4 @@ -/* Copyright (C) 1993,95,96,97,98,2000,2001,2002,2003,2008,2011 - Free Software Foundation, Inc. +/* Copyright (C) 1993-2012 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 @@ -34,6 +33,8 @@ #include #include +#include + FILE* freopen (filename, mode, fp) const char* filename; diff --git a/libio/freopen64.c b/libio/freopen64.c index 7e1beef..24d0360 100644 --- a/libio/freopen64.c +++ b/libio/freopen64.c @@ -1,5 +1,4 @@ -/* Copyright (C) 1993,1995,1996,1997,1998,2000,2001,2002, 2003, 2008, 2011 - Free Software Foundation, Inc. +/* Copyright (C) 1993-2012 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 @@ -33,6 +32,8 @@ #include +#include + FILE * freopen64 (filename, mode, fp) const char* filename; diff --git a/misc/syslog.c b/misc/syslog.c index 57d4db9..4e18883 100644 --- a/misc/syslog.c +++ b/misc/syslog.c @@ -56,6 +56,8 @@ static char sccsid[] = "@(#)syslog.c 8.4 (Berkeley) 3/18/94"; #include #include +#include + #define ftell(s) INTUSE(_IO_ftell) (s) static int LogType = SOCK_DGRAM; /* type of socket connection */ diff --git a/nscd/connections.c b/nscd/connections.c index a8f287e..77b9ac4 100644 --- a/nscd/connections.c +++ b/nscd/connections.c @@ -1,5 +1,5 @@ /* Inner loops of cache daemon. - Copyright (C) 1998-2007, 2008, 2009, 2011 Free Software Foundation, Inc. + Copyright (C) 1998-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1998. @@ -56,9 +56,8 @@ #include "dbg_log.h" #include "selinux.h" #include -#ifdef HAVE_SENDFILE -# include -#endif + +#include /* Support to run nscd as an unprivileged user */ diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c index 276e66f..70cf9c1 100644 --- a/nscd/netgroupcache.c +++ b/nscd/netgroupcache.c @@ -1,5 +1,5 @@ /* Cache handling for netgroup lookup. - Copyright (C) 2011 Free Software Foundation, Inc. + Copyright (C) 2011-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2011. @@ -27,9 +27,8 @@ #include "../inet/netgroup.h" #include "nscd.h" #include "dbg_log.h" -#ifdef HAVE_SENDFILE -# include -#endif + +#include /* This is the standard reply in case the service is disabled. */ diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c index 6c41977..1dc45e8 100644 --- a/sysdeps/posix/getcwd.c +++ b/sysdeps/posix/getcwd.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-1999,2011-2012 Free Software Foundation, Inc. +/* Copyright (C) 1991-2012 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 @@ -173,6 +173,7 @@ extern char *alloca (); #if defined _LIBC # include +# include #else # define openat64_not_cancel_3(dfd, name, mode) openat64 (dfd, name, mode) # define close_not_cancel_no_status(fd) close (fd) -- cgit v1.1