Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d7ff572 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Use proper socket type in uipc for non-android

Change-Id: I5e901ca381c816945146b508770a2aa54d9cdd79
parent a8cee4f3
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -149,7 +149,13 @@ static inline int create_server_socket(const char* name)


    BTIF_TRACE_EVENT("create_server_socket %s", 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));
        BTIF_TRACE_EVENT("socket failed to create (%s)", strerror(errno));
        close(s);
        close(s);