OSDN Git Service

monitor: Add missing include
authorSzymon Janc <szymon.janc@tieto.com>
Wed, 11 Sep 2013 14:03:28 +0000 (16:03 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 12 Sep 2013 06:55:31 +0000 (09:55 +0300)
Bionic library requires explicit include for data types used in ioctl
call. This fix following build error with bionic:

target  C: btmon <= external/bluetooth/bluez/monitor/display.c
external/bluetooth/bluez/monitor/display.c: In function 'num_columns':
external/bluetooth/bluez/monitor/display.c:59:18: error: storage size
    of 'ws' isn't known

monitor/display.c

index 7b6fc98..b8dce1f 100644 (file)
@@ -35,6 +35,7 @@
 #include <sys/wait.h>
 #include <sys/prctl.h>
 #include <sys/ioctl.h>
+#include <termios.h>
 
 #include "display.h"