From 1f1ef57e839d72b24bb2f43b602ecf63e1068010 Mon Sep 17 00:00:00 2001 From: John Grossman Date: Fri, 13 Apr 2012 13:39:53 -0700 Subject: 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 --- Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.mk b/Android.mk index 68e2166..ffc5866 100644 --- a/Android.mk +++ b/Android.mk @@ -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) -- cgit v1.1