diff --git a/ril/libsecril-client/Android.mk b/ril/libsecril-client/Android.mk index d20d2918..3aa68f4a 100755 --- a/ril/libsecril-client/Android.mk +++ b/ril/libsecril-client/Android.mk @@ -22,6 +22,10 @@ ifneq ($(filter m7450 mdm9x35 ss333 xmm7260,$(BOARD_MODEM_TYPE)),) LOCAL_CFLAGS += -DSAMSUNG_NEXT_GEN_MODEM endif +ifeq ($(TARGET_USES_VND_SECRIL), true) +LOCAL_CFLAGS += -DUSES_VND_SECRIL +endif + LOCAL_MODULE:= libsecril-client LOCAL_PRELINK_MODULE := false diff --git a/ril/libsecril-client/secril-client.cpp b/ril/libsecril-client/secril-client.cpp index e2cd8788..194d5905 100755 --- a/ril/libsecril-client/secril-client.cpp +++ b/ril/libsecril-client/secril-client.cpp @@ -35,9 +35,14 @@ namespace android { // Defines //--------------------------------------------------------------------------- #define RILD_PORT 7777 +#ifdef USES_VND_SECRIL +#define MULTI_CLIENT_SOCKET_NAME "VND_Multiclient" +#define MULTI_CLIENT_SOCKET_NAME_2 "VND_Multiclient2" +#else #define MULTI_CLIENT_SOCKET_NAME "Multiclient" -#define MULTI_CLIENT_Q_SOCKET_NAME "QMulticlient" #define MULTI_CLIENT_SOCKET_NAME_2 "Multiclient2" +#endif +#define MULTI_CLIENT_Q_SOCKET_NAME "QMulticlient" #define MAX_COMMAND_BYTES (8 * 1024) #define REQ_POOL_SIZE 32