Index: Makefile.in
--- Makefile.in.orig	2009-10-12 23:45:13 +0200
+++ Makefile.in	2009-10-14 10:42:30 +0200
@@ -25,7 +25,7 @@
 $(OBJECTS): config.h Makefile
 
 $(TARGET): $(OBJECTS)
-	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
+	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS)
 
 %.o: %.c
 	$(CC) $(CFLAGS) -c $< -o $@
Index: tokenizer.l
--- tokenizer.l.orig	2009-10-12 23:45:13 +0200
+++ tokenizer.l	2009-10-14 10:42:30 +0200
@@ -1,11 +1,4 @@
 %pointer
-%e 150
-%p 300
-%n 40
-%k 80
-%a 150
-%o 400
-
 
 %{
 /*
Index: xjobs.c
--- xjobs.c.orig	2009-10-12 23:45:13 +0200
+++ xjobs.c	2009-10-14 10:42:30 +0200
@@ -7,9 +7,6 @@
 #include "config.h"
 #endif
 
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -100,11 +97,13 @@
 static RETSIGTYPE processSignal(int sig)
 {
 	switch (sig) {
+#if defined(SIGPOLL)
 	case SIGPOLL:
 		if (Verbose == Debug)
 			(void) write(STDERR_FILENO,"SIGPOLL\n",8);
 		++InputsWaiting;
 		break;
+#endif
 	case SIGTERM:
 		if (Verbose == Debug)
 			(void) write(STDERR_FILENO,"SIGTERM\n",8);
@@ -1012,10 +1011,14 @@
 					dbug("input script is a named pipe\n");
 					sig.sa_handler = processSignal;
 					sigemptyset(&sig.sa_mask);
+#if defined(SIGPOLL)
 					sigaddset(&sig.sa_mask,SIGPOLL);
+#endif
 					sig.sa_flags = SA_RESTART;
+#if defined(SIGPOLL)
 					ret = sigaction(SIGPOLL,&sig,0);
 					assert(ret == 0);
+#endif
 #ifndef __CYGWIN__
 					(void) open(optarg,O_WRONLY);
 #endif
@@ -1257,10 +1260,14 @@
 				dbug("wait blocking - listening for new pipe connection\n");
 				sig.sa_handler = processSignal;
 				sigemptyset(&sig.sa_mask);
+#if defined(SIGPOLL)
 				sigaddset(&sig.sa_mask,SIGPOLL);
+#endif
 				sig.sa_flags = 0;
+#if defined(SIGPOLL)
 				ret = sigaction(SIGPOLL,&sig,&orig);
 				assert(ret == 0);
+#endif
 				restore = 1;
 			}
 #ifdef HAVE_WAIT4
@@ -1280,8 +1287,10 @@
 			}
 #endif
 			if (restore) {
+#if defined(SIGPOLL)
 				ret = sigaction(SIGPOLL,&orig,0);
 				assert(ret == 0);
+#endif
 			}
 			start_jobs();
 		}
