diff options
Diffstat (limited to 'tapset')
-rw-r--r-- | tapset/ChangeLog | 5 | ||||
-rw-r--r-- | tapset/socket.stp | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index ee15e0e7..f7e43fe5 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2007-01-25 Mike Mason <mmlnx@us.ibm.com> + + * socket.stp: Fix for missing SOCK_PASSSEC in kernels earlier + than 2.6.18. + 2007-01-25 Martin Hunt <hunt@localhost.localdomain> * syscalls2.stp: Add sys32_ustat probe. diff --git a/tapset/socket.stp b/tapset/socket.stp index 49eca217..451dd36e 100644 --- a/tapset/socket.stp +++ b/tapset/socket.stp @@ -509,6 +509,9 @@ function sock_type_str2num:long (type:string) function sock_flags_num2str:string (flags:long) %{ +#ifndef SOCK_PASSSEC +#define SOCK_PASSSEC 4 /* introduced in 2.6.18 */ +#endif char str[60]; str[0] = '\0'; @@ -1078,4 +1081,4 @@ deref_fault: CONTEXT->last_error = "pointer dereference fault"; } end: ; -%}
\ No newline at end of file +%} |