This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Recent binutils releases and linux kernel 2.5.69+
- From: "H. J. Lu" <hjl at lucon dot org>
- To: ismail donmez <voidcartman at yahoo dot com>
- Cc: linux kernel <linux-kernel at vger dot kernel dot org>,GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Thu, 29 May 2003 08:49:48 -0700
- Subject: Re: Recent binutils releases and linux kernel 2.5.69+
- References: <20030529074448.A29931@lucon.org> <20030529150446.99966.qmail@web41011.mail.yahoo.com>
This is a kernel issue and should be fixed in kernel unless we want
to do something in <sys/sysctl.h>.
H.J.
---
--- include/linux/sysctl.h.user 2003-05-29 07:36:51.000000000 -0700
+++ include/linux/sysctl.h 2003-05-29 08:47:21.000000000 -0700
@@ -28,6 +28,11 @@
#include <linux/types.h>
#include <linux/list.h>
+#ifdefine __KERNEL__
+#undef __user
+#define __user
+#endif
+
struct file;
#define CTL_MAXNAME 10 /* how many path components do we allow in a
On Thu, May 29, 2003 at 08:04:46AM -0700, ismail donmez wrote:
>
> --- "H. J. Lu" <hjl@lucon.org> wrote:
> > What is the problem? Does linux/sysctl.h include
> > linux/compiler.h?
> No it doesnt include it directly. It includes
> linux/kernel.h and linux/kernel.h does a trick like
>
> #ifdef __KERNEL__
> .......
> #include <linux/compiler.h>
>
> So we never get __user defined.
>
> > Does your compiler define __CHECKER__?
> >
> No.
>
> Would it be too bad to a trick like
>
> #include <linux/version.h>
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,70)
> #define __user
> #endif
>
> What do you think?
>
> Regards,
> /ismail
>
> =====
> Microsoft Windows: made for the internet
> The Internet: made for UNIX
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com