OSDN Git Service

Merge "Switch to OpenBSD res_random."
authorElliott Hughes <enh@google.com>
Tue, 26 Aug 2014 23:18:04 +0000 (23:18 +0000)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Tue, 26 Aug 2014 23:18:04 +0000 (23:18 +0000)
1  2 
libc/Android.mk
libc/dns/resolv/res_init.c

diff --cc libc/Android.mk
@@@ -642,9 -635,14 +642,15 @@@ LOCAL_SRC_FILES := 
      $(call all-c-files-under,dns) \
      upstream-netbsd/lib/libc/isc/ev_streams.c \
      upstream-netbsd/lib/libc/isc/ev_timers.c \
 +    upstream-netbsd/lib/libc/resolv/mtctxres.c \
  
- LOCAL_CFLAGS := \
+ # We use the OpenBSD res_random.
+ LOCAL_CFLAGS += \
+     -Dres_randomid=__res_randomid
+ LOCAL_SRC_FILES += \
+     upstream-openbsd/lib/libc/net/res_random.c \
+ LOCAL_CFLAGS += \
      $(libc_common_cflags) \
      -DANDROID_CHANGES \
      -DINET6 \
Simple merge