aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-10-22 13:49:32 -0700
committerDan Willemsen <dwillemsen@google.com>2015-10-30 21:57:08 +0000
commit0aa655892286defb098d3eef7be19da59bcd3f32 (patch)
treea01b8a7b0e6829dc74a77c733977c7711687b008
parent8352d7a311ae3f7838cc9d9ee0d69625f73b89e6 (diff)
downloadmdnsresponder-marshmallow-dr-dragon-release.tar.gz
Since every build of this library will be different due to using __DATE__/__TIME__, every OTA will need to patch these files. Bug: 24204119 Change-Id: I27485995147c8fdda33f4e1c766cdc67732c653a (cherry picked from commit 362e08783425519a06da07221ca6083a5944ed62)
-rw-r--r--Android.mk2
-rw-r--r--Clients/dns-sd.c2
-rw-r--r--mDNSShared/dnssd_clientlib.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index 381bcc1..6c4a68a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -53,7 +53,7 @@ LOCAL_C_INCLUDES := external/mdnsresponder/mDNSPosix \
external/mdnsresponder/mDNSCore \
external/mdnsresponder/mDNSShared
-LOCAL_CFLAGS := $(commonFlags)
+LOCAL_CFLAGS := $(commonFlags) -DMDNS_VERSIONSTR_NODTS=1
LOCAL_STATIC_LIBRARIES := $(commonLibs) libc
LOCAL_FORCE_STATIC_EXECUTABLE := true
diff --git a/Clients/dns-sd.c b/Clients/dns-sd.c
index c73c221..c5a09ff 100644
--- a/Clients/dns-sd.c
+++ b/Clients/dns-sd.c
@@ -1338,9 +1338,11 @@ Fail:
#define STRINGIFY_ARGUMENT_WITHOUT_EXPANSION(s) #s
#define STRINGIFY(s) STRINGIFY_ARGUMENT_WITHOUT_EXPANSION(s)
+#ifndef __ANDROID__
// NOT static -- otherwise the compiler may optimize it out
// The "@(#) " pattern is a special prefix the "what" command looks for
const char VersionString_SCCS[] = "@(#) dns-sd " STRINGIFY(mDNSResponderVersion) " (" __DATE__ " " __TIME__ ")";
+#endif
#if _BUILDING_XCODE_PROJECT_
// If the process crashes, then this string will be magically included in the automatically-generated crash log
diff --git a/mDNSShared/dnssd_clientlib.c b/mDNSShared/dnssd_clientlib.c
index c3a3cfc..a92c0c8 100644
--- a/mDNSShared/dnssd_clientlib.c
+++ b/mDNSShared/dnssd_clientlib.c
@@ -363,4 +363,6 @@ DNSServiceErrorType DNSSD_API TXTRecordGetItemAtIndex
// NOT static -- otherwise the compiler may optimize it out
// The "@(#) " pattern is a special prefix the "what" command looks for
+#ifndef __ANDROID__
const char VersionString_SCCS_libdnssd[] = "@(#) libdns_sd " STRINGIFY(mDNSResponderVersion) " (" __DATE__ " " __TIME__ ")";
+#endif