summaryrefslogtreecommitdiff
path: root/system.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2007-01-11 22:48:39 +0000
committerRoland McGrath <roland@redhat.com>2007-01-11 22:48:39 +0000
commit5eb1aa539cdfe5be4a462f983c16cafdd94023e6 (patch)
tree37cb6b9242a3b51a6f6c1192c442c449ac62ba80 /system.c
parent7a399408f2b97e55ab4dded8b289608bb16880c6 (diff)
downloadstrace-5eb1aa539cdfe5be4a462f983c16cafdd94023e6.tar.gz
strace-5eb1aa539cdfe5be4a462f983c16cafdd94023e6.tar.bz2
strace-5eb1aa539cdfe5be4a462f983c16cafdd94023e6.tar.xz
2007-01-11 Roland McGrath <roland@redhat.com>
* system.c [LINUX] (CTL_CPU): Define in case header is missing it.
Diffstat (limited to 'system.c')
-rw-r--r--system.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/system.c b/system.c
index 0fba586..5752f4f 100644
--- 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" },