[netfilter-cvslog] r3610 - trunk/nfsim/kernelenv/include

gandalf at netfilter.org gandalf at netfilter.org
Sun Jan 23 02:08:45 CET 2005


Author: gandalf at netfilter.org
Date: 2005-01-23 02:08:44 +0100 (Sun, 23 Jan 2005)
New Revision: 3610

Modified:
   trunk/nfsim/kernelenv/include/kernelenv.h
Log:
Add definition of DEFINE_SPINLOCK which is needed for newer kernels


Modified: trunk/nfsim/kernelenv/include/kernelenv.h
===================================================================
--- trunk/nfsim/kernelenv/include/kernelenv.h	2005-01-22 19:12:03 UTC (rev 3609)
+++ trunk/nfsim/kernelenv/include/kernelenv.h	2005-01-23 01:08:44 UTC (rev 3610)
@@ -821,6 +821,7 @@
 
 #define RW_LOCK_UNLOCKED (rwlock_t) { 0, NULL }
 #define SPIN_LOCK_UNLOCKED (spinlock_t) { 0, NULL }
+#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
 
 #define spin_lock_init(x) \
 	do { \




More information about the netfilter-cvslog mailing list