summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--srs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/srs.c b/srs.c
index 95815a5..71100e9 100644
--- a/srs.c
+++ b/srs.c
@@ -126,8 +126,11 @@ static int srs_server_open(void)
while(t < 5) {
unlink(SRS_SOCKET_NAME);
+#if RIL_VERSION >= 6
server_fd = socket_local_server(SRS_SOCKET_NAME, ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_STREAM);
-
+#else
+ server_fd = socket_local_server(SRS_SOCKET_NAME, ANDROID_SOCKET_NAMESPACE_RESERVED, SOCK_STREAM);
+#endif
if(server_fd >= 0)
break;