summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2010-03-22 10:34:34 -0500
committerDavid Smith <dsmith@redhat.com>2010-03-22 10:34:34 -0500
commit706c280a4dd032a4211fdf4eff62da773a8c2903 (patch)
tree1a8b35f8d15fcc350924ad095ea20e821fe8efeb
parent05605db9ec5e176dd440a1edf320a987210b1245 (diff)
downloadsystemtap-steved-706c280a4dd032a4211fdf4eff62da773a8c2903.tar.gz
systemtap-steved-706c280a4dd032a4211fdf4eff62da773a8c2903.tar.xz
systemtap-steved-706c280a4dd032a4211fdf4eff62da773a8c2903.zip
Fix syscall tapset on older kernels (RHEL4).
* tapset/aux_syscalls.stp: On systems where inotify isn't supported, don't include inotify.h.
-rw-r--r--tapset/aux_syscalls.stp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index cffb9244..e7d0ae7f 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -1714,7 +1714,9 @@ function _signalfd4_flags_str:string(f:long)
%}
%{
+#ifdef CONFIG_INOTIFY
#include <linux/inotify.h>
+#endif
%}
function _inotify_init1_flag_str:string(f:long)
%{ /* pure */