diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2012-08-28 21:29:03 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2012-08-28 21:29:03 +0200 |
commit | dcd91017bc4bba3db4bb8e83415bb46059852048 (patch) | |
tree | 35aa9a4e11bd550a62bc28c5900c39d164f50b24 /srs.c | |
parent | 4e7ae4c51022ba448c3bb6f9fd92d290b609c696 (diff) | |
download | hardware_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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |