Adding missing android include 47/7647/1
authorMauro Sardara <[email protected]>
Wed, 19 Jul 2017 15:22:01 +0000 (17:22 +0200)
committerMauro Sardara <[email protected]>
Wed, 19 Jul 2017 15:22:01 +0000 (17:22 +0200)
Change-Id: I666b0f932e736cd51c8ef6d42bcd602822445392
Signed-off-by: Mauro Sardara <[email protected]>
icnet/http/icnet_http_server_publisher.cc
icnet/http/icnet_http_server_publisher.h

index 93c19df..92b41e6 100644 (file)
@@ -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
index c914b7f..a1c1c91 100644 (file)
 #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