From 2dc9054d71788af466dd628351d004b117ad9294 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sun, 4 Jul 2010 16:30:50 +0000 Subject: [PATCH] made SDP support a compile flag --- configure.in | 1 + src/hci_cmds.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/configure.in b/configure.in index 81ced4cab..7d5dfa458 100644 --- a/configure.in +++ b/configure.in @@ -227,6 +227,7 @@ if test "x$USE_COCOA_RUN_LOOP" = xyes; then echo "#define USE_COCOA_RUN_LOOP" >> config.h fi echo "#define USE_POSIX_RUN_LOOP" >> config.h +echo "#define HAVE_SDP" >> config.h AC_SUBST(IPHONE_IP) AC_SUBST(HAVE_LIBUSB) diff --git a/src/hci_cmds.c b/src/hci_cmds.c index 9c50da856..ed9a8371d 100644 --- a/src/hci_cmds.c +++ b/src/hci_cmds.c @@ -115,6 +115,7 @@ uint16_t hci_create_cmd_internal(uint8_t *hci_cmd_buffer, hci_cmd_t *cmd, va_lis memcpy(&hci_cmd_buffer[pos], ptr, 16); pos += 16; break; +#ifdef HAVE_SDP case 'S': { // Service Record (Data Element Sequence) ptr = va_arg(argptr, uint8_t *); uint16_t len = de_get_len(ptr); @@ -122,6 +123,7 @@ uint16_t hci_create_cmd_internal(uint8_t *hci_cmd_buffer, hci_cmd_t *cmd, va_lis pos += len; break; } +#endif default: break; }