summaryrefslogtreecommitdiffstats
path: root/tapset/task.stp
diff options
context:
space:
mode:
authorMark Wielaard <mwielaard@redhat.com>2008-05-26 13:55:14 +0200
committerMark Wielaard <mwielaard@redhat.com>2008-05-26 13:55:14 +0200
commitea5bf166039d50d5b687c7e622e137732f2b2d4d (patch)
treee252c23a18c418a26efc1b6286881330f7fc976c /tapset/task.stp
parentf09ac52b8a4a35e46c694b96ccfbf28c08f0c527 (diff)
downloadsystemtap-steved-ea5bf166039d50d5b687c7e622e137732f2b2d4d.tar.gz
systemtap-steved-ea5bf166039d50d5b687c7e622e137732f2b2d4d.tar.xz
systemtap-steved-ea5bf166039d50d5b687c7e622e137732f2b2d4d.zip
Only include fdtable.h for kernel versions > 2.6.25.
Diffstat (limited to 'tapset/task.stp')
-rw-r--r--tapset/task.stp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tapset/task.stp b/tapset/task.stp
index 1f361b58..d89729e8 100644
--- a/tapset/task.stp
+++ b/tapset/task.stp
@@ -9,7 +9,9 @@
%{
#include <linux/version.h>
#include <linux/file.h>
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
#include <linux/fdtable.h>
+#endif
%}
// Return the task_struct representing the current process