aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2012-05-10 14:39:53 -0700
committerRoland McGrath <roland@hack.frob.com>2012-05-10 15:57:24 -0700
commit37233df9d1fa7a1a6ff3a72ce4f642b1a96de9ca (patch)
treef915c0fb7e61e5ed4c3c5a82b7ab3c27bc95c8c3
parent38de94a5efbc3de186d6f287d666f74e5b4c8247 (diff)
downloadtermbaud-37233df9d1fa7a1a6ff3a72ce4f642b1a96de9ca.tar.gz
termbaud-37233df9d1fa7a1a6ff3a72ce4f642b1a96de9ca.tar.xz
termbaud-37233df9d1fa7a1a6ff3a72ce4f642b1a96de9ca.zip
Hurd: #include <kernel-features.h>
-rw-r--r--ChangeLog10
-rw-r--r--libio/fileops.c4
-rw-r--r--libio/freopen.c5
-rw-r--r--libio/freopen64.c5
-rw-r--r--misc/syslog.c2
-rw-r--r--nscd/connections.c7
-rw-r--r--nscd/netgroupcache.c7
-rw-r--r--sysdeps/posix/getcwd.c3
8 files changed, 28 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e71ac62373..279fbd6b3c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-05-10 Thomas Schwinge <thomas@schwinge.name>
+
+ * libio/fileops.c: Unconditionally include <kernel-features.h>.
+ * 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 <roland@hack.frob.com>
* math/w_ilogbf.c: Add #include <limits.h>.
diff --git a/libio/fileops.c b/libio/fileops.c
index a2e8dacd774..93750f8084a 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 <bothner@cygnus.com>.
@@ -46,6 +45,7 @@
# include "../iconv/gconv_int.h"
# include <shlib-compat.h>
# include <not-cancel.h>
+# include <kernel-features.h>
#endif
#ifndef errno
extern int errno;
diff --git a/libio/freopen.c b/libio/freopen.c
index 418f412f32d..025c55b6555 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 <shlib-compat.h>
#include <fd_to_filename.h>
+#include <kernel-features.h>
+
FILE*
freopen (filename, mode, fp)
const char* filename;
diff --git a/libio/freopen64.c b/libio/freopen64.c
index 7e1beeff33b..24d03606254 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 <fd_to_filename.h>
+#include <kernel-features.h>
+
FILE *
freopen64 (filename, mode, fp)
const char* filename;
diff --git a/misc/syslog.c b/misc/syslog.c
index 57d4db9b5b4..4e18883f50d 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 <libio/iolibio.h>
#include <math_ldbl_opt.h>
+#include <kernel-features.h>
+
#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 a8f287ef3e5..77b9ac40a33 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 <drepper@cygnus.com>, 1998.
@@ -56,9 +56,8 @@
#include "dbg_log.h"
#include "selinux.h"
#include <resolv/resolv.h>
-#ifdef HAVE_SENDFILE
-# include <kernel-features.h>
-#endif
+
+#include <kernel-features.h>
/* Support to run nscd as an unprivileged user */
diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c
index 276e66ff449..70cf9c14b3a 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 <drepper@gmail.com>, 2011.
@@ -27,9 +27,8 @@
#include "../inet/netgroup.h"
#include "nscd.h"
#include "dbg_log.h"
-#ifdef HAVE_SENDFILE
-# include <kernel-features.h>
-#endif
+
+#include <kernel-features.h>
/* This is the standard reply in case the service is disabled. */
diff --git a/sysdeps/posix/getcwd.c b/sysdeps/posix/getcwd.c
index 6c41977eb0e..1dc45e8ee2c 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 <not-cancel.h>
+# include <kernel-features.h>
#else
# define openat64_not_cancel_3(dfd, name, mode) openat64 (dfd, name, mode)
# define close_not_cancel_no_status(fd) close (fd)