summaryrefslogtreecommitdiffstats
path: root/srs.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-08-28 21:29:03 +0200
committerPaul Kocialkowski <contact@paulk.fr>2012-08-28 21:29:03 +0200
commitdcd91017bc4bba3db4bb8e83415bb46059852048 (patch)
tree35aa9a4e11bd550a62bc28c5900c39d164f50b24 /srs.c
parent4e7ae4c51022ba448c3bb6f9fd92d290b609c696 (diff)
downloadhardware_ril_samsung-ril-dcd91017bc4bba3db4bb8e83415bb46059852048.zip
hardware_ril_samsung-ril-dcd91017bc4bba3db4bb8e83415bb46059852048.tar.gz
hardware_ril_samsung-ril-dcd91017bc4bba3db4bb8e83415bb46059852048.tar.bz2
SRS: Use different socket type based on RIL version
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'srs.c')
-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;