test: fix compile

This commit is contained in:
Matthias Ringwald 2018-02-05 18:46:26 +01:00
parent ceecb9d95a
commit d622dcd08a
4 changed files with 6 additions and 3 deletions

View File

@ -196,7 +196,7 @@ static void delete_link_key(bd_addr_t bd_addr){
}
static int iterator_init(btstack_link_key_iterator_t * it){
tinydir_dir * dir = malloc(sizeof(tinydir_dir));
tinydir_dir * dir = (tinydir_dir *) malloc(sizeof(tinydir_dir));
if (!dir) return 0;
it->context = dir;
tinydir_open(dir, LINK_KEY_PATH);

View File

@ -39,6 +39,7 @@ CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include -D OI_DEBUG
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/hxcmod-player/mods
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/tinydir
CFLAGS += -I${BTSTACK_ROOT}/platform/posix
CFLAGS += -I${BTSTACK_ROOT}/platform/embedded
CFLAGS += -I${BTSTACK_ROOT}/port/libusb

View File

@ -36,6 +36,7 @@ CFLAGS += -I${BTSTACK_ROOT}/src
CFLAGS += -I${BTSTACK_ROOT}/src/classic
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include -D OI_DEBUG
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include
CFLAGS += -I${BTSTACK_ROOT}/3rd-party/tinydir
CFLAGS += -I${BTSTACK_ROOT}/platform/posix
CFLAGS += -I${BTSTACK_ROOT}/platform/embedded
CFLAGS += -I..

View File

@ -9,8 +9,9 @@ CFLAGS = -g -Wall \
-I. \
-I.. \
-I${BTSTACK_ROOT}/src \
-I${BTSTACK_ROOT}/platform/posix
-I${BTSTACK_ROOT}/platform/posix \
-I${BTSTACK_ROOT}/3rd-party/tinydir
LDFLAGS += -lCppUTest -lCppUTestExt
VPATH += ${BTSTACK_ROOT}/src/classic