From 7feb0cb1bd5b283142d1a0bf5f412dbf880f2861 Mon Sep 17 00:00:00 2001 From: mmason Date: Thu, 25 Jan 2007 18:42:37 +0000 Subject: Fix for missing SOCK_PASSSEC in kernels earlier than 2.6.18. --- tapset/socket.stp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tapset/socket.stp') 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 +%} -- cgit