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>
Tue, 9 May 2017 22:39:12 +0000 (15:39 -0700)
commit2b59c4a0843c9f2782cf4163f921eddb31dd6ff9
tree090d1839b8fdeaac8d349abc2e4d69a8cb438179
parentf5db8096063e2fc4f5957c6fb463db175ab19244
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
hci/src/btsnoop.cc
osi/BUILD.gn
osi/include/properties.h
osi/src/alarm.cc
osi/src/properties.cc
osi/test/properties_test.cc