--- bluez-5.19.orig/plugins/wiimote.c	2014-02-22 02:42:18.000000000 +0100
+++ bluez-5.19/plugins/wiimote.c	2014-06-04 16:53:28.000000000 +0200
@@ -28,6 +28,7 @@
 #include <stdbool.h>
 
 #include <bluetooth/bluetooth.h>
+#include <fcntl.h>
 #include <glib.h>
 
 #include "src/plugin.h"