Stop building __DATE__/__TIME__ into Android binaries

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)
diff --git a/Android.mk b/Android.mk
index 381bcc1..6c4a68a 100644
--- a/Android.mk
+++ b/Android.mk
@@ -53,7 +53,7 @@
                     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 @@
 #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 @@
 
 // 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