OSDN Git Service

Fix broken linux build
authorJack He <siyuanh@google.com>
Thu, 4 May 2017 20:27:25 +0000 (13:27 -0700)
committerJack He <siyuanh@google.com>
Wed, 10 May 2017 21:36:05 +0000 (14:36 -0700)
commit3f122786c51d318c8acb3e1759866846393ffbd2
tree2be4020e9fc6db4f0fe6abddf523ef99f7e4af7e
parent8db5514d924b4e48930eca340fb307063c3fbe74
Fix broken linux build

* Generic linux does not have property_get_int32. Instead,
  osi_property_get_int32() is created to handle OS_GENERIC cases
* Some linux header have sigevent.sigev_notify_attributes typed as
  (pthread_attr_t *) whereas others typed it as (void *), as any pointer
  can be implicitly casted to (void *), the current casting to (void *)
  is unncessary and will break build on systems using (pthread_attr_t *)

Test: make, unit test, no user visible effect
Change-Id: I24b33da453dc9d40656168a3bcd900d9c99219ce
(cherry picked from commit 2b59c4a0843c9f2782cf4163f921eddb31dd6ff9)
hci/src/btsnoop.cc
osi/include/properties.h
osi/src/alarm.cc
osi/src/properties.cc
osi/test/properties_test.cc