--- ulogd-2.0.2.orig/output/sqlite3/ulogd_output_SQLITE3.c	2012-08-03 16:11:53.000000000 +0200
+++ ulogd-2.0.2/output/sqlite3/ulogd_output_SQLITE3.c	2013-11-11 21:27:31.000000000 +0100
@@ -36,7 +36,11 @@
 #include <ulogd/ulogd.h>
 #include <ulogd/conffile.h>
 #include <sqlite3.h>
+#if defined(HAVE_SYS_QUEUE_H)
 #include <sys/queue.h>
+#else
+#include "queue.h"
+#endif
 
 #define CFG_BUFFER_DEFAULT		10
 
