summaryrefslogtreecommitdiffstats
path: root/liblog
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-03-04 17:01:30 -0800
committerMark Salyzyn <salyzyn@google.com>2015-03-04 17:40:04 -0800
commit31dd00fcf5fe507b723fc179e61508dde1eb41cd (patch)
tree6e1eb47c875d01695df7aec7fa6c26427f44d23f /liblog
parent051222c2436f3cb7fdbc87cc7bc28c5d3495eb28 (diff)
downloadsystem_core-31dd00fcf5fe507b723fc179e61508dde1eb41cd.zip
system_core-31dd00fcf5fe507b723fc179e61508dde1eb41cd.tar.gz
system_core-31dd00fcf5fe507b723fc179e61508dde1eb41cd.tar.bz2
liblog: logprint use <endian.h> part three
Fix host/sdk builds: - Drop logprint from list of host products - Drop <endian.h> for FAKE_LOG_DEVICE Change-Id: I8aa854413ff6d809f0b04987cf913eb228e4213c
Diffstat (limited to 'liblog')
-rw-r--r--liblog/Android.mk4
-rw-r--r--liblog/logd_write.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/liblog/Android.mk b/liblog/Android.mk
index 9353546..ea179fa 100644
--- a/liblog/Android.mk
+++ b/liblog/Android.mk
@@ -40,7 +40,6 @@ endif
ifndef WITH_MINGW
liblog_sources += \
- logprint.c \
event_tag_map.c
else
liblog_sources += \
@@ -49,6 +48,9 @@ endif
liblog_host_sources := $(liblog_sources) fake_log_device.c event.logtags
liblog_target_sources := $(liblog_sources) log_time.cpp log_is_loggable.c
+ifndef WITH_MINGW
+liblog_target_sources += logprint.c
+endif
ifneq ($(TARGET_USES_LOGD),false)
liblog_target_sources += log_read.c
else
diff --git a/liblog/logd_write.c b/liblog/logd_write.c
index c8a6162..cd0a216 100644
--- a/liblog/logd_write.c
+++ b/liblog/logd_write.c
@@ -13,7 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#if (FAKE_LOG_DEVICE == 0)
#include <endian.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#if !defined(_WIN32)