diff options
author | John Grossman <johngro@google.com> | 2012-04-13 13:39:53 -0700 |
---|---|---|
committer | John Grossman <johngro@google.com> | 2012-04-13 16:38:30 -0700 |
commit | 1f1ef57e839d72b24bb2f43b602ecf63e1068010 (patch) | |
tree | 9f01d37dd14188cabd8a357ebfbdf9ab4d7c3eda | |
parent | ddaa48f57b54b2862b3e6dcf18a44c9647f3baaa (diff) | |
download | external_dhcpcd-1f1ef57e839d72b24bb2f43b602ecf63e1068010.zip external_dhcpcd-1f1ef57e839d72b24bb2f43b602ecf63e1068010.tar.gz external_dhcpcd-1f1ef57e839d72b24bb2f43b602ecf63e1068010.tar.bz2 |
DHCPDC: Actually we do have a monotonic clock...
Fix bug http://b/issue?id=6272879
DHCPCD thought that our kernel did not support the posix clock_gettime
and CLOCK_MONOTONIC which could cause an interface flap under just the
right circumstances. See the writeup in the bug for details.
Change-Id: I3a5325625499d4c3640ce498fc100ab2891d0a9c
-rw-r--r-- | Android.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -15,6 +15,7 @@ LOCAL_SRC_FILES := arp.c bind.c common.c control.c dhcp.c dhcpcd.c duid.c \ LOCAL_SHARED_LIBRARIES := libc libcutils libnetutils LOCAL_MODULE = dhcpcd LOCAL_MODULE_TAGS := user +LOCAL_CFLAGS := -D_POSIX_MONOTONIC_CLOCK -DCLOCK_MONOTONIC include $(BUILD_EXECUTABLE) include $(CLEAR_VARS) |