1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:24:52 +00:00
freebsd-ports/palm/synce-librapi2/files/patch-rapi_context.c
Alexander Logvinov fe9ecba926 - Update to 0.14
PR:		ports/139327
Submitted by:	myself
Approved by:	maintainer, portmgr (miwi)
2009-10-12 09:35:22 +00:00

25 lines
982 B
C

--- 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;