diff options
| author | Miguel Gaio <miguel.gaio@renault.com> | 2017-12-12 17:21:30 +0100 |
|---|---|---|
| committer | Eric Laurent <elaurent@google.com> | 2019-04-26 10:59:31 -0700 |
| commit | aab0b59ff5415492655d5dcb4664e3780bd061ed (patch) | |
| tree | cb561c6f6efe78318f71402ce1ce9ec6f7ee7ed7 /support/android | |
| parent | aed3fb17c1ab7c9d3257f8659f163f43558bc0d8 (diff) | |
| download | platform_external_parameter-framework-aab0b59ff5415492655d5dcb4664e3780bd061ed.tar.gz platform_external_parameter-framework-aab0b59ff5415492655d5dcb4664e3780bd061ed.tar.bz2 platform_external_parameter-framework-aab0b59ff5415492655d5dcb4664e3780bd061ed.zip | |
asio: add support to AF_UNIX socket and asio::generic::stream_protocol
Update support/android/asio/asio_defines.txt with following config
#define ASIO_HAS_LOCAL_SOCKETS
#undef ASIO_DISABLE_LOCAL_SOCKETS
Integrate asio::generic::stream_protocol class
Bug: 130284799
Test: make
Change-Id: I3b8c482664fd3d0fe319ec9787b12c411a5590f6
Signed-off-by: Miguel Gaio <miguel.gaio@renault.com>
Diffstat (limited to 'support/android')
| -rw-r--r-- | support/android/asio/asio.hpp | 2 | ||||
| -rw-r--r-- | support/android/asio/asio_defines.txt | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/support/android/asio/asio.hpp b/support/android/asio/asio.hpp index ca7cd2f..6698fd7 100644 --- a/support/android/asio/asio.hpp +++ b/support/android/asio/asio.hpp @@ -42,6 +42,8 @@ #include "asio/error_code.hpp" #include "asio/io_service.hpp" #include "asio/ip/tcp.hpp" +#include "asio/generic/stream_protocol.hpp" +#include "asio/local/stream_protocol.hpp" #include "asio/read.hpp" #include "asio/socket_base.hpp" #include "asio/system_error.hpp" diff --git a/support/android/asio/asio_defines.txt b/support/android/asio/asio_defines.txt index e00ca1e..6218ff5 100644 --- a/support/android/asio/asio_defines.txt +++ b/support/android/asio/asio_defines.txt @@ -67,14 +67,14 @@ #undef ASIO_HAS_TIMERFD #define ASIO_HAS_THREADS // We are not using asio for iostream, nor serial ports, nor posix file -// descriptiors, nor with unix sockets +// descriptiors #define ASIO_NO_IOSTREAM #define ASIO_DISABLE_SERIAL_PORT #undef ASIO_HAS_SERIAL_PORT #undef ASIO_HAS_POSIX_STREAM_DESCRIPTOR #define ASIO_DISABLE_POSIX_STREAM_DESCRIPTOR -#undef ASIO_HAS_LOCAL_SOCKETS -#define ASIO_DISABLE_LOCAL_SOCKETS +#define ASIO_HAS_LOCAL_SOCKETS +#undef ASIO_DISABLE_LOCAL_SOCKETS // windows-only features #undef ASIO_HAS_IOCP #undef ASIO_HAS_WINDOWS_OBJECT_HANDLE |
