summaryrefslogtreecommitdiffstats
path: root/tapset
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
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')
-rw-r--r--tapset/ChangeLog4
-rw-r--r--tapset/socket.stp3
2 files changed, 7 insertions, 0 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index 5cd5a6d5..48b6b86e 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,5 +1,9 @@
2007-09-25 Frank Ch. Eigler <fche@elastic.org>
+ * socket.stp (sock_flags_num2str): Define SOCK_PASSCRED if needed.
+
+2007-09-25 Frank Ch. Eigler <fche@elastic.org>
+
* socket.stp (__i2n_ip_proto): Add a cast for 32-bit compatibility.
2007-09-25 Frank Ch. Eigler <fche@elastic.org>
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