--- bluez-5.12.orig/plugins/wiimote.c 2013-12-10 07:59:06.000000000 +0100 +++ bluez-5.12/plugins/wiimote.c 2013-12-21 19:29:22.000000000 +0100 @@ -28,6 +28,7 @@ #include <stdbool.h> #include <bluetooth/bluetooth.h> +#include <fcntl.h> #include <glib.h> #include "plugin.h"