diff options
Diffstat (limited to 'comms/obexftp/patches')
-rw-r--r-- | comms/obexftp/patches/patch-aa | 70 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-ab | 27 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-ac | 34 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-ad | 36 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-ae | 25 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-af | 29 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-ag | 27 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-ah | 13 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-ai | 30 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-aj | 218 | ||||
-rw-r--r-- | comms/obexftp/patches/patch-ak | 63 |
11 files changed, 495 insertions, 77 deletions
diff --git a/comms/obexftp/patches/patch-aa b/comms/obexftp/patches/patch-aa index 6da3e2c095c..c4403a21c63 100644 --- a/comms/obexftp/patches/patch-aa +++ b/comms/obexftp/patches/patch-aa @@ -1,16 +1,56 @@ -$NetBSD: patch-aa,v 1.1.1.1 2004/02/26 12:50:45 jmmv Exp $ +$NetBSD: patch-aa,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ ---- bfb/bfb_io.c.orig 2003-04-11 12:34:10.000000000 +0200 -+++ bfb/bfb_io.c -@@ -272,8 +272,10 @@ void bfb_io_close(fd_t fd, int force) - /* Send a break to get out of OBEX-mode */ - #ifdef _WIN32 - if(SetCommBreak(fd) != TRUE) { --#else -+#elif defined(TCSBRKP) - if(ioctl(fd, TCSBRKP, 0) < 0) { -+#else -+ if(tcsendbreak(fd, 0) == -1) { - #endif - DEBUG(1, "Unable to send break!\n"); - } +--- aclocal.m4.orig 2006-05-16 15:50:36.000000000 +0100 ++++ aclocal.m4 +@@ -56,6 +56,9 @@ if test "$ac_bluetooth_enabled" = yes; t + #ifdef __FreeBSD__ + #include <sys/types.h> + #include <bluetooth.h> ++ #elif defined(__NetBSD__) ++ #include <bluetooth.h> ++ #include <netbt/rfcomm.h> + #else /* Linux */ + #include <sys/socket.h> + #include <bluetooth/bluetooth.h> +@@ -65,6 +68,9 @@ if test "$ac_bluetooth_enabled" = yes; t + #ifdef __FreeBSD__ + bdaddr_t bdaddr; + struct sockaddr_rfcomm addr; ++ #elif defined(__NetBSD__) ++ bdaddr_t bdaddr; ++ struct sockaddr_bt addr; + #else /* Linux */ + bdaddr_t bdaddr; + struct sockaddr_rc addr; +@@ -76,6 +82,7 @@ if test "$ac_bluetooth_enabled" = yes; t + AC_DEFINE([HAVE_BLUETOOTH], [1], [Define if system supports Bluetooth and it's enabled]) + BLUETOOTH_CFLAGS="" + BLUETOOTH_LIBS="-lbluetooth" ++ AC_CHECK_LIB(sdp, sdp_open, BLUETOOTH_LIBS="$BLUETOOTH_LIBS -lsdp") + fi + AC_SUBST(BLUETOOTH_CFLAGS) + AC_SUBST(BLUETOOTH_LIBS) +@@ -92,14 +99,22 @@ AC_DEFUN([SDPLIB_CHECK],[ + AC_MSG_CHECKING(for Bluetooth SDP support) + + AC_TRY_COMPILE( [ ++ #ifdef __NetBSD__ ++ #include <bluetooth.h> ++ #include <sdp.h> ++ #else + #include <bluetooth/sdp.h> ++ #endif + ],[ ++ #ifdef __NetBSD__ ++ sdp_attr_t attr; ++ #else + sdp_list_t sdplist; ++ #endif + ], + am_cv_sdplib_found=yes, + am_cv_sdplib_found=no + ) +- + if test $am_cv_sdplib_found = yes; then + AC_DEFINE(HAVE_SDPLIB,1,[Define if system supports Bluetooth SDP]) + diff --git a/comms/obexftp/patches/patch-ab b/comms/obexftp/patches/patch-ab index fae546a108d..496247e04a0 100644 --- a/comms/obexftp/patches/patch-ab +++ b/comms/obexftp/patches/patch-ab @@ -1,16 +1,19 @@ -$NetBSD: patch-ab,v 1.1.1.1 2004/02/26 12:50:45 jmmv Exp $ +$NetBSD: patch-ab,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ ---- cobexpe/cobex_pe.c.orig 2003-04-10 00:37:02.000000000 +0200 -+++ cobexpe/cobex_pe.c -@@ -151,7 +151,11 @@ static void cobex_pe_cleanup(cobex_t *c, +--- multicobex/multi_cobex.c.orig 2005-11-24 15:55:11.000000000 +0100 ++++ multicobex/multi_cobex.c 2006-07-09 12:21:14.000000000 +0200 +@@ -49,6 +49,14 @@ + #include <termios.h> + #endif - if(force) { - /* Send a break to get out of OBEX-mode */ -+#ifdef TCSBRKP - if(ioctl(c->fd, TCSBRKP, 0) < 0) { ++#ifdef HAVE_BLUETOOTH ++#ifdef __NetBSD__ ++#include <bluetooth.h> +#else -+ if(tcsendbreak(c->fd, 0) == -1) { ++#include <bluetooth/bluetooth.h> +#endif - DEBUG(1, "Unable to send break!\n"); - } - sleep(1); ++#endif /* HAVE_BLUETOOTH */ ++ + #include <openobex/obex.h> + #include "multi_cobex.h" + #include "multi_cobex_private.h" diff --git a/comms/obexftp/patches/patch-ac b/comms/obexftp/patches/patch-ac index abaaf00c69f..014edff2d50 100644 --- a/comms/obexftp/patches/patch-ac +++ b/comms/obexftp/patches/patch-ac @@ -1,12 +1,26 @@ -$NetBSD: patch-ac,v 1.1.1.1 2004/02/26 12:50:45 jmmv Exp $ +$NetBSD: patch-ac,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ ---- obexftp/client.c.orig 2003-02-16 19:56:31.000000000 +0100 -+++ obexftp/client.c -@@ -24,6 +24,7 @@ - #include <unistd.h> - #include <fcntl.h> - #include <sys/stat.h> -+#include <limits.h> +--- obexftp/object.h.orig 2005-09-13 16:53:20.000000000 +0200 ++++ obexftp/object.h 2006-07-09 12:45:14.000000000 +0200 +@@ -22,7 +22,21 @@ + #ifndef OBEXFTP_OBJECT_H + #define OBEXFTP_OBJECT_H - /* htons */ - #ifdef _WIN32 ++#ifdef HAVE_CONFIG_H ++#include <config.h> ++#endif ++ + #include <inttypes.h> ++#include <sys/types.h> ++ ++#ifdef HAVE_BLUETOOTH ++#ifdef __NetBSD__ ++#include <bluetooth.h> ++#else ++#include <bluetooth/bluetooth.h> ++#endif ++#endif /* HAVE_BLUETOOTH */ ++ + #include <openobex/obex.h> + + #ifdef __cplusplus diff --git a/comms/obexftp/patches/patch-ad b/comms/obexftp/patches/patch-ad index bae3fbcaa76..c017c183b75 100644 --- a/comms/obexftp/patches/patch-ad +++ b/comms/obexftp/patches/patch-ad @@ -1,12 +1,28 @@ -$NetBSD: patch-ad,v 1.1.1.1 2004/02/26 12:50:45 jmmv Exp $ +$NetBSD: patch-ad,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ ---- obexftp/dirtraverse.c.orig 2003-01-15 23:52:47.000000000 +0100 -+++ obexftp/dirtraverse.c -@@ -22,6 +22,7 @@ - #include <string.h> - #include <unistd.h> - #include <stdlib.h> -+#include <limits.h> +--- obexftp/client.h.orig 2006-01-11 16:22:51.000000000 +0100 ++++ obexftp/client.h 2006-07-09 12:39:10.000000000 +0200 +@@ -22,9 +22,23 @@ + #ifndef OBEXFTP_CLIENT_H + #define OBEXFTP_CLIENT_H + ++#ifdef HAVE_CONFIG_H ++#include <config.h> ++#endif ++ + #include <inttypes.h> #include <sys/stat.h> - #include <sys/types.h> - #ifdef _WIN32 ++#include <sys/types.h> + #include <time.h> ++ ++#ifdef HAVE_BLUETOOTH ++#ifdef __NetBSD__ ++#include <bluetooth.h> ++#else ++#include <bluetooth/bluetooth.h> ++#endif ++#endif /* HAVE_BLUETOOTH */ ++ + #include <openobex/obex.h> + #ifndef OBEX_TRANS_USB + #define OBEX_TRANS_USB 6 diff --git a/comms/obexftp/patches/patch-ae b/comms/obexftp/patches/patch-ae index 43c12b34c07..a39ed4d091d 100644 --- a/comms/obexftp/patches/patch-ae +++ b/comms/obexftp/patches/patch-ae @@ -1,12 +1,15 @@ -$NetBSD: patch-ae,v 1.1.1.1 2004/02/26 12:50:45 jmmv Exp $ +$NetBSD: patch-ae,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ ---- obexftp/obexftp_io.c.orig 2003-01-15 23:52:12.000000000 +0100 -+++ obexftp/obexftp_io.c -@@ -24,6 +24,7 @@ - #include <unistd.h> - #include <stdio.h> /* FIXME: libraries shouldn't do this */ - #include <sys/stat.h> -+#include <limits.h> - - #include <fcntl.h> - #include <string.h> +--- obexftp/client.c.orig 2006-07-09 12:37:02.000000000 +0200 ++++ obexftp/client.c 2006-07-09 12:38:10.000000000 +0200 +@@ -48,6 +48,10 @@ + #ifdef __FreeBSD__ + #include <sys/types.h> + #include <bluetooth.h> ++#elif defined(__NetBSD__) ++#include <sys/types.h> ++#include <bluetooth.h> ++#include <netbt/rfcomm.h> + #else /* Linux */ + #include <bluetooth/bluetooth.h> + #include <bluetooth/rfcomm.h> diff --git a/comms/obexftp/patches/patch-af b/comms/obexftp/patches/patch-af index 813d91e37c1..b4aaadb53e2 100644 --- a/comms/obexftp/patches/patch-af +++ b/comms/obexftp/patches/patch-af @@ -1,12 +1,23 @@ -$NetBSD: patch-af,v 1.1.1.1 2004/02/26 12:50:45 jmmv Exp $ +$NetBSD: patch-af,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ ---- vmo/gsm2vmo.c.orig 2003-02-17 22:55:47.000000000 +0100 -+++ vmo/gsm2vmo.c -@@ -32,6 +32,7 @@ - #include <stdlib.h> +--- obexftp/obexftp_io.c.orig 2006-07-09 12:40:32.000000000 +0200 ++++ obexftp/obexftp_io.c 2006-07-09 12:41:36.000000000 +0200 +@@ -30,6 +30,18 @@ #include <string.h> - #include <unistd.h> -+#include <limits.h> - #include <fcntl.h> - #include <netinet/in.h> /* ntohs */ + #include <time.h> ++#ifdef HAVE_CONFIG_H ++#include <config.h> ++#endif ++ ++#ifdef HAVE_BLUETOOTH ++#ifdef __NetBSD__ ++#include <bluetooth.h> ++#else ++#include <bluetooth/bluetooth.h> ++#endif ++#endif /* HAVE_BLUETOOTH */ ++ + #include <openobex/obex.h> + + #include "obexftp_io.h" diff --git a/comms/obexftp/patches/patch-ag b/comms/obexftp/patches/patch-ag index 16891d850ba..5275ad7c970 100644 --- a/comms/obexftp/patches/patch-ag +++ b/comms/obexftp/patches/patch-ag @@ -1,12 +1,19 @@ -$NetBSD: patch-ag,v 1.1.1.1 2004/02/26 12:50:45 jmmv Exp $ +$NetBSD: patch-ag,v 1.2 2006/07/17 12:29:57 xtraeme Exp $ ---- vmo/vmo2gsm.c.orig 2003-02-17 22:55:40.000000000 +0100 -+++ vmo/vmo2gsm.c -@@ -32,6 +32,7 @@ - #include <stdlib.h> - #include <string.h> - #include <unistd.h> -+#include <limits.h> - #include <fcntl.h> - #include <netinet/in.h> /* ntohs */ +--- obexftp/cache.c.orig 2006-07-09 12:43:21.000000000 +0200 ++++ obexftp/cache.c 2006-07-09 12:43:56.000000000 +0200 +@@ -40,6 +40,14 @@ + #include <langinfo.h> + #endif ++#ifdef HAVE_BLUETOOTH ++#ifdef __NetBSD__ ++#include <bluetooth.h> ++#else ++#include <bluetooth/bluetooth.h> ++#endif ++#endif /* HAVE_BLUETOOTH */ ++ + #include <openobex/obex.h> + + #include "obexftp.h" diff --git a/comms/obexftp/patches/patch-ah b/comms/obexftp/patches/patch-ah new file mode 100644 index 00000000000..c6dd1c06697 --- /dev/null +++ b/comms/obexftp/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 2006/07/17 12:29:57 xtraeme Exp $ + +--- obexftp/Makefile.in.orig 2006-07-09 12:56:29.000000000 +0200 ++++ obexftp/Makefile.in 2006-07-09 12:57:34.000000000 +0200 +@@ -201,7 +201,7 @@ + object.h + + +-libobexftp_la_LDFLAGS = -version-info $(OBEXFTP_VERSION) ++libobexftp_la_LDFLAGS = -version-info $(OBEXFTP_VERSION) @BLUETOOTH_LIBS@ + + EXTRA_DIST = client.i + subdir = obexftp diff --git a/comms/obexftp/patches/patch-ai b/comms/obexftp/patches/patch-ai new file mode 100644 index 00000000000..512e96ee7f7 --- /dev/null +++ b/comms/obexftp/patches/patch-ai @@ -0,0 +1,30 @@ +$NetBSD: patch-ai,v 1.1 2006/07/17 12:29:57 xtraeme Exp $ + +--- apps/obexftpd.c.orig 2006-07-09 16:43:20.000000000 +0200 ++++ apps/obexftpd.c 2006-07-09 16:45:04.000000000 +0200 +@@ -23,6 +23,10 @@ + * Created at: Don, 2 Okt 2003 + */ + ++#ifdef HAVE_CONFIG_H ++#include <config.h> ++#endif ++ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +@@ -45,6 +49,14 @@ + #include <netdb.h> + #endif /*_WIN32*/ + ++#ifdef HAVE_BLUETOOTH ++#ifdef __NetBSD__ ++#include <bluetooth.h> ++#else ++#include <bluetooth/bluetooth.h> ++#endif ++#endif /* HAVE_BLUETOOTH */ ++ + /* just until there is a server layer in obexftp */ + #include <openobex/obex.h> + diff --git a/comms/obexftp/patches/patch-aj b/comms/obexftp/patches/patch-aj new file mode 100644 index 00000000000..0a6d1e41d62 --- /dev/null +++ b/comms/obexftp/patches/patch-aj @@ -0,0 +1,218 @@ +$NetBSD: patch-aj,v 1.1 2006/07/17 12:29:57 xtraeme Exp $ + +--- apps/bt_discovery.c.orig 2006-01-11 17:27:35.000000000 +0000 ++++ apps/bt_discovery.c +@@ -10,6 +10,205 @@ + #include <sys/types.h> + #include <sys/socket.h> + ++#ifdef __NetBSD__ ++#include <bluetooth.h> ++#include <err.h> ++#include <errno.h> ++#include <sdp.h> ++ ++#include "bt_discovery.h" ++ ++/* ++ * Parse protocol descriptor list for the RFCOMM channel ++ * ++ * seq8 len8 2 ++ * seq8 len8 2 ++ * uuid16 value16 3 L2CAP ++ * seq8 len8 2 ++ * uuid16 value16 3 RFCOMM ++ * uint8 value8 2 channel ++ * === ++ * 14 ++ */ ++ ++static int32_t ++parse_rfcomm_channel(sdp_attr_t *a) ++{ ++ uint8_t *ptr = a->value; ++ uint8_t *end = a->value + a->vlen; ++ int32_t type, len, uuid, channel; ++ ++ if (end - ptr < 14) ++ return (-1); ++ ++ SDP_GET8(type, ptr); ++ switch (type) { ++ case SDP_DATA_SEQ8: ++ SDP_GET8(len, ptr); ++ break; ++ ++ case SDP_DATA_SEQ16: ++ SDP_GET16(len, ptr); ++ break; ++ ++ case SDP_DATA_SEQ32: ++ SDP_GET32(len, ptr); ++ break; ++ ++ default: ++ return (-1); ++ } ++ if (ptr + len > end) ++ return (-1); ++ ++ /* Protocol */ ++ SDP_GET8(type, ptr); ++ switch (type) { ++ case SDP_DATA_SEQ8: ++ SDP_GET8(len, ptr); ++ break; ++ ++ case SDP_DATA_SEQ16: ++ SDP_GET16(len, ptr); ++ break; ++ ++ case SDP_DATA_SEQ32: ++ SDP_GET32(len, ptr); ++ break; ++ ++ default: ++ return (-1); ++ } ++ if (ptr + len > end) ++ return (-1); ++ ++ /* UUID */ ++ if (ptr + 3 > end) ++ return (-1); ++ SDP_GET8(type, ptr); ++ switch (type) { ++ case SDP_DATA_UUID16: ++ SDP_GET16(uuid, ptr); ++ if (uuid != SDP_UUID_PROTOCOL_L2CAP) ++ return (-1); ++ break; ++ ++ case SDP_DATA_UUID32: /* XXX FIXME can we have 32-bit UUID */ ++ case SDP_DATA_UUID128: /* XXX FIXME can we have 128-bit UUID */ ++ default: ++ return (-1); ++ } ++ ++ /* Protocol */ ++ SDP_GET8(type, ptr); ++ switch (type) { ++ case SDP_DATA_SEQ8: ++ SDP_GET8(len, ptr); ++ break; ++ ++ case SDP_DATA_SEQ16: ++ SDP_GET16(len, ptr); ++ break; ++ ++ case SDP_DATA_SEQ32: ++ SDP_GET32(len, ptr); ++ break; ++ ++ default: ++ return (-1); ++ } ++ if (ptr + len > end) ++ return (-1); ++ ++ /* UUID */ ++ if (ptr + 3 > end) ++ return (-1); ++ SDP_GET8(type, ptr); ++ switch (type) { ++ case SDP_DATA_UUID16: ++ SDP_GET16(uuid, ptr); ++ if (uuid != SDP_UUID_PROTOCOL_RFCOMM) ++ return (-1); ++ break; ++ ++ case SDP_DATA_UUID32: /* XXX FIXME can we have 32-bit UUID */ ++ case SDP_DATA_UUID128: /* XXX FIXME can we have 128-bit UUID */ ++ default: ++ return (-1); ++ } ++ ++ /* channel */ ++ if (ptr + 2 > end) ++ return (-1); ++ ++ SDP_GET8(type, ptr); ++ if (type != SDP_DATA_UINT8) ++ return (-1); ++ ++ SDP_GET8(channel, ptr); ++ ++ return (channel); ++} ++ ++int ++discover_bt(char *addr, char **res_bdaddr, int *res_channel) ++{ ++ bdaddr_t laddr, raddr; ++ uint8_t buffer[256]; ++ sdp_attr_t proto = { SDP_ATTR_INVALID, 0, sizeof(buffer), buffer }; ++ uint16_t serv = SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER; ++ uint32_t attr = SDP_ATTR_RANGE(SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST, ++ SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST); ++ void *ss; ++ ++ /* ++ * Convert given address to bdaddr. If not bdaddr, ++ * look it up in hosts database. ++ * ++ * XXX original does an inquiry if no name is given, ++ * XXX and matches against the name given or uses ++ * XXX the first device found. Consider that. ++ */ ++ if (addr == NULL) ++ errx(1, "must have address"); ++ ++ if (!bt_aton(addr, &raddr)) { ++ struct hostent *he = NULL; ++ ++ if ((he = bt_gethostbyname(addr)) == NULL) ++ errx(1, "%s: %s", ++ addr, hstrerror(h_errno)); ++ ++ bdaddr_copy(&raddr, (bdaddr_t *)he->h_addr); ++ } ++ ++ *res_bdaddr = strdup(bt_ntoa(&raddr, NULL)); ++ fprintf(stderr, "Browsing %s ...\n", *res_bdaddr); ++ ++ /* ++ * Connect to remote SDP server to find the channel ++ * number to use for the OBEX_FILE_TRANSFER service ++ */ ++ bdaddr_copy(&laddr, BDADDR_ANY); ++ ss = sdp_open(&laddr, &raddr); ++ if (ss == NULL || (errno = sdp_error(ss)) != 0) ++ err(1, "%s", addr); ++ ++ if (sdp_search(ss, 1, &serv, 1, &attr, 1, &proto) != 0) ++ errx(1, "sdp_search", strerror(sdp_error(ss))); ++ ++ if (proto.flags != SDP_ATTR_OK) ++ errx(1, "sdp_search: File Transfer not available"); ++ ++ sdp_close(ss); ++ ++ *res_channel = parse_rfcomm_channel(&proto); ++ if (*res_channel == -1) ++ errx(1, "sdp_search: No Channel #"); ++ ++ return 0; ++} ++#else + #include <bluetooth/bluetooth.h> + #include <bluetooth/hci.h> + #include <bluetooth/hci_lib.h> +@@ -146,6 +345,7 @@ int discover_bt(char *addr, char **res_b + + return 0; + } ++#endif + + #else + #include "bt_discovery.h" diff --git a/comms/obexftp/patches/patch-ak b/comms/obexftp/patches/patch-ak new file mode 100644 index 00000000000..45057c372bb --- /dev/null +++ b/comms/obexftp/patches/patch-ak @@ -0,0 +1,63 @@ +$NetBSD: patch-ak,v 1.1 2006/07/17 12:29:57 xtraeme Exp $ + +--- apps/obexftp_sdp.c.orig 2006-07-15 19:50:12.000000000 +0100 ++++ apps/obexftp_sdp.c +@@ -34,6 +34,53 @@ + #include <sys/types.h> + #include <sys/socket.h> + ++#ifdef __NetBSD__ ++#include <bluetooth.h> ++#include <sdp.h> ++ ++#include "obexftp_sdp.h" ++ ++#define OBEXFTP_RFCOMM_CHANNEL 10 ++ ++static void *session; ++ ++void ++obexftp_sdp_unregister(void) ++{ ++ sdp_close(session); ++} ++ ++int ++obexftp_sdp_register(void) ++{ ++ sdp_ftrn_profile_t ftrn; ++ bdaddr_t bdaddr; ++ ++ memset(&ftrn, 0, sizeof(ftrn)); ++ ftrn.server_channel = OBEXFTP_RFCOMM_CHANNEL; ++ ++ bdaddr_copy(&bdaddr, BDADDR_ANY); ++ ++ session = sdp_open_local(NULL); ++ if (session == NULL || (errno = sdp_error(session))) { ++ syslog(LOG_ERR, "Failed to connect to the local SDP server. %s(%d)", ++ strerror(errno), errno); ++ ++ return -1; ++ } ++ ++ if (sdp_register_service(session, SDP_SERVICE_CLASS_OBEX_FILE_TRANSFER, ++ &bdaddr, (uint8_t *)&ftrn, sizeof(ftrn), NULL) != 0) { ++ errno = sdp_error(session); ++ syslog(LOG_ERR, "SDP registration failed. %s(%d)", ++ strerror(errno), errno); ++ sdp_close(session); ++ return -1; ++ } ++ ++ return 0; ++} ++#else + #include <bluetooth/bluetooth.h> + #include <bluetooth/sdp.h> + #include <bluetooth/sdp_lib.h> +@@ -173,3 +220,4 @@ int obexftp_sdp_search(bdaddr_t *src, bd + return 0; + } + */ ++#endif |