This patch allows you to compile zaptel against a kernel with Ingo Molinar's
realtime-preempt patch (http://people.redhat.com/mingo/realtime-preempt/)

diff -ur zaptel-1.0.8/tor2.c /home/fugalh/src/zaptel-1.0.8/tor2.c
--- zaptel-1.0.8/tor2.c	2005-01-16 18:58:09.000000000 -0700
+++ /home/fugalh/src/zaptel-1.0.8/tor2.c	2005-06-28 22:31:41.000000000 -0600
@@ -1087,7 +1087,7 @@
 static int syncsrc = 0;
 static int syncnum = 0 /* -1 */;
 static int syncspan = 0;
-static spinlock_t synclock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(synclock);
 
 static int tor2_findsync(struct tor2 *tor)
 {
diff -ur zaptel-1.0.8/zaptel.c /home/fugalh/src/zaptel-1.0.8/zaptel.c
--- zaptel-1.0.8/zaptel.c	2005-06-15 15:31:22.000000000 -0600
+++ /home/fugalh/src/zaptel-1.0.8/zaptel.c	2005-06-28 22:31:42.000000000 -0600
@@ -321,9 +321,9 @@
 	wait_queue_head_t sel;
 } *zaptimers = NULL;
 
-static spinlock_t zaptimerlock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(zaptimerlock);
 
-static spinlock_t bigzaplock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(bigzaplock);
 
 struct zt_zone {
 	char name[40];	/* Informational, only */
diff -ur zaptel-1.0.8/ztd-eth.c /home/fugalh/src/zaptel-1.0.8/ztd-eth.c
--- zaptel-1.0.8/ztd-eth.c	2004-10-14 16:30:55.000000000 -0600
+++ /home/fugalh/src/zaptel-1.0.8/ztd-eth.c	2005-06-28 22:31:42.000000000 -0600
@@ -51,7 +51,7 @@
 /* We take the raw message, put it in an ethernet frame, and add a
    two byte addressing header at the top for future use */
 
-static spinlock_t zlock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(zlock);
 
 static struct ztdeth {
 	unsigned char addr[ETH_ALEN];
diff -ur zaptel-1.0.8/ztdummy.c /home/fugalh/src/zaptel-1.0.8/ztdummy.c
--- zaptel-1.0.8/ztdummy.c	2005-01-20 22:05:18.000000000 -0700
+++ /home/fugalh/src/zaptel-1.0.8/ztdummy.c	2005-06-28 22:31:42.000000000 -0600
@@ -152,7 +152,7 @@
 {
 #ifndef LINUX26
     int irq;
-    spinlock_t mylock = SPIN_LOCK_UNLOCKED;
+    DEFINE_SPINLOCK(mylock);
 	
     if (uhci_devices==NULL){
         printk ("ztdummy: Uhci_devices pointer error.\n");
diff -ur zaptel-1.0.8/ztdynamic.c /home/fugalh/src/zaptel-1.0.8/ztdynamic.c
--- zaptel-1.0.8/ztdynamic.c	2005-01-16 18:58:09.000000000 -0700
+++ /home/fugalh/src/zaptel-1.0.8/ztdynamic.c	2005-06-28 22:31:42.000000000 -0600
@@ -126,7 +126,7 @@
 
 static int hasmaster = 0;
 
-static spinlock_t dlock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(dlock);
 
 
 static void checkmaster(void)
