From 7da3a4a70b52703958d9e62c45f2c81339bca2a4 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowski Date: Thu, 13 Oct 2016 15:46:30 -0700 Subject: [PATCH] Use proper socket type in uipc for non-android Change-Id: I5e901ca381c816945146b508770a2aa54d9cdd79 --- udrv/ulinux/uipc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/udrv/ulinux/uipc.c b/udrv/ulinux/uipc.c index 8fec11ccd..41403eb2e 100644 --- a/udrv/ulinux/uipc.c +++ b/udrv/ulinux/uipc.c @@ -149,7 +149,13 @@ static inline int create_server_socket(const char* name) BTIF_TRACE_EVENT("create_server_socket %s", name); - if(osi_socket_local_server_bind(s, name, ANDROID_SOCKET_NAMESPACE_ABSTRACT) < 0) + if(osi_socket_local_server_bind(s, name, +#if defined(OS_GENERIC) + ANDROID_SOCKET_NAMESPACE_FILESYSTEM +#else // !defined(OS_GENERIC) + ANDROID_SOCKET_NAMESPACE_ABSTRACT +#endif // defined(OS_GENERIC) + ) < 0) { BTIF_TRACE_EVENT("socket failed to create (%s)", strerror(errno)); close(s); -- 2.11.0