OSDN Git Service

Make wakelock compile on Linux
authorJakub Pawlowski <jpawlowski@google.com>
Tue, 23 Feb 2016 23:27:47 +0000 (15:27 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 24 Feb 2016 01:03:37 +0000 (01:03 +0000)
This patch adds some missing header files that prevented wakelocks
from compiling on linux.

Bug: 27324453
Change-Id: Ifabf3350fe840524cf7e1ec7aa2825acb4399c81

osi/src/wakelock.c

index 4053248..bb4709b 100644 (file)
 #include <hardware/bluetooth.h>
 #include <inttypes.h>
 #include <limits.h>
+#include <pthread.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <time.h>
 
 #include "osi/include/alarm.h"
 #include "osi/include/allocator.h"