summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-21 19:07:40 -0700
committerElliott Hughes <enh@google.com>2014-07-21 19:10:16 -0700
commit23d6d5c524cd8bb0dcba45ffa9dd546b507e7e30 (patch)
tree752a1f670adf2bad7e3dd81c29b49959f6066359
parent41d356427a632f5336384bfa45c8420ffc274f66 (diff)
downloadandroid_external_dnsmasq-23d6d5c524cd8bb0dcba45ffa9dd546b507e7e30.tar.gz
android_external_dnsmasq-23d6d5c524cd8bb0dcba45ffa9dd546b507e7e30.tar.bz2
android_external_dnsmasq-23d6d5c524cd8bb0dcba45ffa9dd546b507e7e30.zip
Fix dnsmasq '_PATH_LOG' undeclared build error.
This change came from upstream, presumably so they can build against the NDK. (cherry picked from commit 70eeec149a396b7c457d05de9e38d270a861b9fa) Change-Id: Idca02fba6fd31e60fdd5710973c98e07ac71a7bc
-rwxr-xr-xsrc/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 2fc0c6e..e854eea 100755
--- a/src/log.c
+++ b/src/log.c
@@ -114,7 +114,7 @@ int log_reopen(char *log_file)
return log_fd != -1;
}
else
-#ifdef HAVE_SOLARIS_NETWORK
+#if defined(HAVE_SOLARIS_NETWORK) || defined(__ANDROID__)
/* Solaris logging is "different", /dev/log is not unix-domain socket.
Just leave log_fd == -1 and use the vsyslog call for everything.... */
# define _PATH_LOG "" /* dummy */