[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] glibc-2.3.2 fails to compile on Linux with recent 2.5 kernels
From: |
Bruce Allan |
Subject: |
[patch] glibc-2.3.2 fails to compile on Linux with recent 2.5 kernels |
Date: |
25 Jul 2003 14:02:25 -0700 |
Sorry if this has already been discussed/fixed, but I can't check the
mailing list archives since sources.redhat.com is currently down.
Recent (in the last couple months) changes to the Linux 2.5 kernel cause
glibc-2.3.2 to fail to compile. The problem is the new user pointer
annotations used in linux/sysctl.h and defined in linux/compiler.h
(normally included via linux/kernel.h). The following patch fixes this:
--- glibc-2.3.2-vanilla/sysdeps/unix/sysv/linux/sys/sysctl.h 2003-07-25
13:33:10.000000000 -0700
+++ glibc-2.3.2/sysdeps/unix/sysv/linux/sys/sysctl.h 2003-07-25
13:13:56.000000000 -0700
@@ -26,6 +26,7 @@
#define _LINUX_KERNEL_H 1
#define _LINUX_TYPES_H 1
#define _LINUX_LIST_H 1
+#include <linux/compiler.h>
#include <linux/sysctl.h>
__BEGIN_DECLS
Of course, an alternative in glibc's sysctl.h would be to:
#define __user
prior to including linux' sysctl.h
Thanks,
--
Bruce Allan
Linux Technology Center
IBM Corporation, Beaverton OR
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch] glibc-2.3.2 fails to compile on Linux with recent 2.5 kernels,
Bruce Allan <=