aboutsummaryrefslogtreecommitdiffstats
path: root/palm/synce-librapi2/files/patch-rapi_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'palm/synce-librapi2/files/patch-rapi_context.c')
-rw-r--r--palm/synce-librapi2/files/patch-rapi_context.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/palm/synce-librapi2/files/patch-rapi_context.c b/palm/synce-librapi2/files/patch-rapi_context.c
new file mode 100644
index 000000000000..414ca3c862a2
--- /dev/null
+++ b/palm/synce-librapi2/files/patch-rapi_context.c
@@ -0,0 +1,24 @@
+--- src/support/rapi_context.c 2009-07-27 13:25:07.000000000 +0400
++++ src/support/rapi_context.c 2009-07-27 13:26:52.000000000 +0400
+@@ -513,13 +513,19 @@
+ /*
+ * odccm, synce-hal, or proxy ?
+ */
++#if ENABLE_ODCCM_SUPPORT
+ if (strcmp(transport, "odccm") == 0) {
+ synce_socket_take_descriptor(context->socket, get_connection_from_odccm(info));
+ }
+- else if (strcmp(transport, "hal") == 0) {
++ else
++#endif
++#if ENABLE_HAL_SUPPORT
++ if (strcmp(transport, "hal") == 0) {
+ synce_socket_take_descriptor(context->socket, get_connection_from_hal(info));
+ }
+- else if ( !synce_socket_connect_proxy(context->socket, synce_info_get_device_ip(info)) )
++ else
++#endif
++ if ( !synce_socket_connect_proxy(context->socket, synce_info_get_device_ip(info)) )
+ {
+ synce_error("failed to connect to proxy for %s", synce_info_get_device_ip(info));
+ goto fail;