From 9d1afc426890d93786b216ef25e5676ecb3bd95c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 11 Sep 2009 21:46:12 +0200 Subject: [PATCH] ACCOUNT: fix compile error on realtime kernels xt_ACCOUNT.c:1040: error: implicit declaration of function 'init_MUTEX' --- extensions/xt_ACCOUNT.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/xt_ACCOUNT.c b/extensions/xt_ACCOUNT.c index 0455d1a..16dcead 100644 --- a/extensions/xt_ACCOUNT.c +++ b/extensions/xt_ACCOUNT.c @@ -30,6 +30,7 @@ #include #include +#include #include #include #include @@ -1037,7 +1038,7 @@ static struct nf_sockopt_ops ipt_acc_sockopts = { static int __init account_tg_init(void) { - init_MUTEX(&ipt_acc_userspace_mutex); + sema_init(&ipt_acc_userspace_mutex, 1); if ((ipt_acc_tables = kmalloc(ACCOUNT_MAX_TABLES *