1Submitted By:            Armin K. <krejzi at email dot com>
2Date:                    2012-07-06
3Initial Package Version: 0.4.6
4Upstream Status:         Unknown
5Origin:                  Self
6Description:             Some build fixes.
7
8Index: obex-data-server-0.4.6/src/ods-obex.c
9===================================================================
10--- obex-data-server-0.4.6.orig/src/ods-obex.c
11+++ obex-data-server-0.4.6/src/ods-obex.c
12@@ -412,7 +412,7 @@ ods_obex_setup_usbtransport (OdsObexCont
13 		goto err;
14 	}
15
16-	interfaces_num = OBEX_FindInterfaces(obex_context->obex_handle, &obex_intf);
17+	interfaces_num = OBEX_EnumerateInterfaces(obex_context->obex_handle);
18 	if (intf_num >= interfaces_num) {
19 		g_set_error (error, ODS_ERROR, ODS_ERROR_FAILED, "Invalid interface number");
20 		goto err;
21