aboutsummaryrefslogtreecommitdiffstats
path: root/icnet
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-07-19 17:22:01 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-07-19 17:22:01 +0200
commit12b835ddd5a431ef1bcd1bd2c89e8f92256ec435 (patch)
treeba3612064de9f1f2d6b8fe95cabc14406ed7fe1a /icnet
parentfb047fb9b890fe7085ee78308d65b525279f1724 (diff)
Adding missing android include
Change-Id: I666b0f932e736cd51c8ef6d42bcd602822445392 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet')
-rw-r--r--icnet/http/icnet_http_server_publisher.cc2
-rw-r--r--icnet/http/icnet_http_server_publisher.h6
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<core::Name &>(content_name_).toString().c_str());
+ __android_log_print(ANDROID_LOG_DEBUG, "HTTP_SERVER_PUBLISHER", "Replying to %s", const_cast<transport::Name &>(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 <vector>
#include <functional>
+#ifdef __ANDROID__
+#include <android/log.h>
+#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