Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Enable HAVE_MONOTONIC_CLOCK compiler flag
Browse files Browse the repository at this point in the history
This will make D-Bus use monotonic clock instead of system time
for timeout calculation, which prevents issues when system time
changes while there is a pending call.

Bug: 25159392
TEST=Manual test on Brillo boards

Change-Id: I2f4f1ea4848b47efe10b56efe02b2c7c9b33f779
  • Loading branch information
zqiu-nest committed Oct 22, 2015
1 parent 7d83c13 commit 6c54c62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbus/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/..
LOCAL_CFLAGS+= \
-DDBUS_COMPILATION \
-DANDROID_MANAGED_SOCKET \
-DHAVE_MONOTONIC_CLOCK \
-DDBUS_MACHINE_UUID_FILE=\"/etc/machine-id\" \
-DDBUS_SYSTEM_CONFIG_FILE=\"/system/etc/dbus.conf\" \
-DDBUS_SESSION_CONFIG_FILE=\"/system/etc/session.conf\" \
Expand Down

0 comments on commit 6c54c62

Please sign in to comment.