aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/includes
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/includes')
-rw-r--r--libtransport/includes/hicn/transport/interfaces/socket_consumer.h3
-rw-r--r--libtransport/includes/hicn/transport/interfaces/socket_producer.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/libtransport/includes/hicn/transport/interfaces/socket_consumer.h b/libtransport/includes/hicn/transport/interfaces/socket_consumer.h
index ee60ecbff..0a6e9a43a 100644
--- a/libtransport/includes/hicn/transport/interfaces/socket_consumer.h
+++ b/libtransport/includes/hicn/transport/interfaces/socket_consumer.h
@@ -23,9 +23,10 @@
#include <hicn/transport/interfaces/socket_options_keys.h>
#include <hicn/transport/security/verifier.h>
+#ifndef ASIO_STANDALONE
#define ASIO_STANDALONE
+#endif
#include <asio/io_service.hpp>
-#undef ASIO_STANDALONE
#define CONSUMER_FINISHED 0
#define CONSUMER_BUSY 1
diff --git a/libtransport/includes/hicn/transport/interfaces/socket_producer.h b/libtransport/includes/hicn/transport/interfaces/socket_producer.h
index e4823cb5c..b51050307 100644
--- a/libtransport/includes/hicn/transport/interfaces/socket_producer.h
+++ b/libtransport/includes/hicn/transport/interfaces/socket_producer.h
@@ -23,9 +23,11 @@
#include <hicn/transport/interfaces/socket_options_keys.h>
#include <hicn/transport/security/signer.h>
+#ifndef ASIO_STANDALONE
#define ASIO_STANDALONE
+#endif
#include <asio/io_service.hpp>
-#undef ASIO_STANDALONE
+
namespace transport {
namespace implementation {