--- /dev/null
+Index: src/LMEConnection.cpp
+===================================================================
+--- src/LMEConnection.cpp (revision 213)
++++ src/LMEConnection.cpp (working copy)
+@@ -41,6 +41,8 @@
+ #include <arpa/inet.h>
+ #endif
+
++#include <pthread.h>
++
+ #define HECI_BUFF_SIZE 0x1000
+ #define HECI_IO_TIMEOUT 5000
+
--- /dev/null
+#!/bin/sh
+
+test -d lms || svn co https://openamt.svn.sourceforge.net/svnroot/openamt/lms/trunk lms
+
+cd lms && patch -N -p0 < ../2.lms.diff
+cd -
+
+test -x lms/src/lms || ( cd lms && ./bootstrap.sh && ./configure --enable-debug && make )
+