]> granicus.if.org Git - strace/commitdiff
2007-01-11 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 11 Jan 2007 22:48:39 +0000 (22:48 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 11 Jan 2007 22:48:39 +0000 (22:48 +0000)
* system.c [LINUX] (CTL_CPU): Define in case header is missing it.

system.c

index 0fba58668e15eaec133ec3ca2aeb75f110020760..5752f4f855be07abc96701da9b87fbd43840d64e 100644 (file)
--- a/system.c
+++ b/system.c
@@ -1576,6 +1576,7 @@ struct tcb *tcp;
 #ifdef LINUX
 /* Linux 2.6.18+ headers removed CTL_PROC enum.  */
 # define CTL_PROC 4
+# define CTL_CPU 10            /* older headers lack */
 static const struct xlat sysctl_root[] = {
        { CTL_KERN, "CTL_KERN" },
        { CTL_VM, "CTL_VM" },