Index: src/scripting/perl/core.h
===================================================================
--- src/scripting/perl/core.h.orig	2008-06-20 22:19:55.000000000 +0200
+++ src/scripting/perl/core.h	2008-08-08 12:35:25.000000000 +0200
@@ -6,6 +6,10 @@
 #include <perl.h>
 #include <perlapi.h>
 
+/* FIXME: don't know where this macro comes from! */
+#undef LIST_HEAD
+#define LIST_HEAD(x) x *next; x *prev
+
 struct module;
 
 extern PerlInterpreter *my_perl;
