Missing <kernel-features.h> includes

Thomas Schwinge tschwinge@gnu.org
Tue Dec 16 17:01:00 GMT 2008


Hello!

Please apply the following patch.

nscd/connections.c no longer only uses __ASSUME_SENDFILE, but also a
bunch of other __ASSUME_* macros.  For misc/syslog.c the include has been
totally missing.


2008-12-16  Thomas Schwinge  <tschwinge@gnu.org>

	* misc/syslog.c: Include <kernel-features.h>.
	* nscd/connections.c: Unconditionally include <kernel-features.h>.

diff --git a/misc/syslog.c b/misc/syslog.c
index 90cd3bf..353a7ca 100644
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -50,6 +50,7 @@ static char sccsid[] = "@(#)syslog.c	8.4 (Berkeley) 3/18/94";
 #include <bits/libc-lock.h>
 #include <signal.h>
 #include <locale.h>
+#include <kernel-features.h>
 
 #if __STDC__
 #include <stdarg.h>
diff --git a/nscd/connections.c b/nscd/connections.c
index dd934c1..9d17785 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -52,9 +52,7 @@
 #include "dbg_log.h"
 #include "selinux.h"
 #include <resolv/resolv.h>
-#ifdef HAVE_SENDFILE
-# include <kernel-features.h>
-#endif
+#include <kernel-features.h>
 
 
 /* Wrapper functions with error checking for standard functions.  */


Regards,
 Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20081216/7a3102c6/attachment.sig>


More information about the Libc-alpha mailing list