--- obexftp-0.22/apps/obexftpd.c.orig	2008-12-10 08:52:24.561257907 +0100
+++ obexftp-0.22/apps/obexftpd.c	2008-12-10 08:51:58.793259594 +0100
@@ -58,6 +58,9 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
+#ifdef HAVE_BLUETOOTH
+#include <bluetooth/bluetooth.h>
+#endif
 #endif
 
 /* just until there is a server layer in obexftp */