summaryrefslogtreecommitdiffstats
path: root/tapset/socket.stp
diff options
context:
space:
mode:
authorfche <fche>2007-09-25 19:30:58 +0000
committerfche <fche>2007-09-25 19:30:58 +0000
commitaef736c8d2f96fa012f17f27ed57330cc3f4524f (patch)
tree7b74b6dfc860881d26472c2987138db3978b95b0 /tapset/socket.stp
parent14132a5eb855778cfe855256ff024b05a01cc9fb (diff)
downloadsystemtap-steved-aef736c8d2f96fa012f17f27ed57330cc3f4524f.tar.gz
systemtap-steved-aef736c8d2f96fa012f17f27ed57330cc3f4524f.tar.xz
systemtap-steved-aef736c8d2f96fa012f17f27ed57330cc3f4524f.zip
socket.stp build fix for 2.6.9 kernel
2007-09-25 Frank Ch. Eigler <fche@elastic.org> * socket.stp (sock_flags_num2str): Define SOCK_PASSCRED if needed.
Diffstat (limited to 'tapset/socket.stp')
-rw-r--r--tapset/socket.stp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tapset/socket.stp b/tapset/socket.stp
index 563b866b..fc532b1d 100644
--- a/tapset/socket.stp
+++ b/tapset/socket.stp
@@ -626,6 +626,9 @@ function sock_type_str2num:long (type:string)
function sock_flags_num2str:string (flags:long)
%{ /* pure */
+#ifndef SOCK_PASSCRED
+#define SOCK_PASSCRED 3 /* introduced in 2.6.12? */
+#endif
#ifndef SOCK_PASSSEC
#define SOCK_PASSSEC 4 /* introduced in 2.6.18 */
#endif