2006-11-27 Dmitry V. Levin <ldv@altlinux.org>

* system.c [LINUX]: Define CTL_PROC, since Linux 2.6.18+ headers
	removed CTL_PROC enum.	Patch from Jakub Jelinek.
	[LINUX] (sysctl_root): Add CTL_BUS, CTL_ABI and CTL_CPU.
This commit is contained in:
Дмитрий Левин 2006-12-04 13:48:10 +00:00
parent a694666207
commit 35a55785ea
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-11-27 Dmitry V. Levin <ldv@altlinux.org>
* system.c [LINUX]: Define CTL_PROC, since Linux 2.6.18+ headers
removed CTL_PROC enum. Patch from Jakub Jelinek.
[LINUX] (sysctl_root): Add CTL_BUS, CTL_ABI and CTL_CPU.
2006-11-20 Jakub Jelinek <jakub@redhat.com>
* linux/ia64/syscallent.h: Add #if check to make sure that

View File

@ -1574,6 +1574,8 @@ struct tcb *tcp;
#endif
#ifdef LINUX
/* Linux 2.6.18+ headers removed CTL_PROC enum. */
# define CTL_PROC 4
static const struct xlat sysctl_root[] = {
{ CTL_KERN, "CTL_KERN" },
{ CTL_VM, "CTL_VM" },
@ -1582,6 +1584,9 @@ static const struct xlat sysctl_root[] = {
{ CTL_FS, "CTL_FS" },
{ CTL_DEBUG, "CTL_DEBUG" },
{ CTL_DEV, "CTL_DEV" },
{ CTL_BUS, "CTL_BUS" },
{ CTL_ABI, "CTL_ABI" },
{ CTL_CPU, "CTL_CPU" },
{ 0, NULL }
};