From 12b835ddd5a431ef1bcd1bd2c89e8f92256ec435 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Wed, 19 Jul 2017 17:22:01 +0200 Subject: Adding missing android include Change-Id: I666b0f932e736cd51c8ef6d42bcd602822445392 Signed-off-by: Mauro Sardara --- icnet/http/icnet_http_server_publisher.cc | 2 +- icnet/http/icnet_http_server_publisher.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/icnet/http/icnet_http_server_publisher.cc b/icnet/http/icnet_http_server_publisher.cc index 93c19df8..92b41e6c 100644 --- a/icnet/http/icnet_http_server_publisher.cc +++ b/icnet/http/icnet_http_server_publisher.cc @@ -66,7 +66,7 @@ HTTPServerPublisher &HTTPServerPublisher::setTimeout(uint32_t timeout) { void HTTPServerPublisher::publishContent(const uint8_t *buf, size_t buffer_size, const int response_id, bool is_last) { if (producer_) { #ifdef __ANDROID__ - __android_log_print(ANDROID_LOG_DEBUG, "HTTP_SERVER_PUBLISHER", "Replying to %s", const_cast(content_name_).toString().c_str()); + __android_log_print(ANDROID_LOG_DEBUG, "HTTP_SERVER_PUBLISHER", "Replying to %s", const_cast(content_name_).toString().c_str()); #else std::cout << "Replying to " << content_name_ << std::endl; #endif diff --git a/icnet/http/icnet_http_server_publisher.h b/icnet/http/icnet_http_server_publisher.h index c914b7f7..a1c1c91a 100644 --- a/icnet/http/icnet_http_server_publisher.h +++ b/icnet/http/icnet_http_server_publisher.h @@ -22,6 +22,10 @@ #include #include +#ifdef __ANDROID__ +#include +#endif + #define HTTP_VERSION "1.0" namespace icnet { @@ -63,4 +67,4 @@ class HTTPServerPublisher { } // end namespace http -} // end namespace icnet \ No newline at end of file +} // end namespace icnet -- cgit 1.2.3-korg