Search
j0ke.net Open Build Service
>
Projects
>
ha
>
iscsitarget
> iscsitarget-r1257-kernel-compat-2.6.12.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File iscsitarget-r1257-kernel-compat-2.6.12.patch of Package iscsitarget
Index: kernel/event.c =================================================================== --- kernel/event.c (revision 41) +++ kernel/event.c (working copy) @@ -6,6 +6,7 @@ * Some functions are based on audit code. */ +#include <linux/version.h> #include <net/tcp.h> #include "iet_u.h" #include "iscsi_dbg.h" @@ -71,8 +72,11 @@ if (!(skb = alloc_skb(NLMSG_SPACE(len), gfp_mask))) return -ENOMEM; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13) nlh = __nlmsg_put(skb, ietd_pid, seq++, NLMSG_DONE, len - sizeof(*nlh), 0); - +#else + nlh = __nlmsg_put(skb, ietd_pid, seq++, NLMSG_DONE, len - sizeof(*nlh)); +#endif memcpy(NLMSG_DATA(nlh), data, len); return netlink_unicast(nl, skb, ietd_pid, 0);