diff options
-rw-r--r-- | icnet/http/icnet_http_server_publisher.cc | 2 | ||||
-rw-r--r-- | 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<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 |