made SDP support a compile flag

This commit is contained in:
matthias.ringwald 2010-07-04 16:30:50 +00:00
parent 10642e45f5
commit 2dc9054d71
2 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

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