lkml.org 
[lkml]   [2004]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] warning: `__attribute_used__' redefined
From
Date
On Tue, 10 Feb 2004 12:10:55 EST, Daniel Jacobowitz said:

> This is what Debian has been using. I believe the other folks with a
> glibc-kernel-headers package based on 2.6 do something similar. I
> don't know how you'll feel about adding this sort of crap to the

I found this in the Fedora linux-2.6.0-compile.patch included in their
kernel-2.6.1-1.65.src.rpm. A bit more hard-line. :)

Anybody want to push it for the Linus or -mm trees? ;)

--- linux-2.6.0-test11/include/linux/config.h~ 2003-12-11 09:29:14.090625985 +0100
+++ linux-2.6.0-test11/include/linux/config.h 2003-12-11 09:29:14.090625985 +0100
@@ -2,5 +2,7 @@
#define _LINUX_CONFIG_H

#include <linux/autoconf.h>
-
+#ifndef __KERNEL__
+#error including kernel header in userspace; use the glibc headers instead!
+#endif
#endif
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.074 / U:0.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site