From f4325524cb5acdddbe26d32fab49aeed1d7f0b23 Mon Sep 17 00:00:00 2001 From: Felix Herrmann Date: Tue, 10 Dec 2019 16:29:45 +0100 Subject: Android: Enable Android build Signed-off-by: Felix Herrmann Signed-off-by: KHANH LUONG HONG DUY --- src/console/dlt-receive.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/console/dlt-receive.c') diff --git a/src/console/dlt-receive.c b/src/console/dlt-receive.c index 9424711..24280ee 100644 --- a/src/console/dlt-receive.c +++ b/src/console/dlt-receive.c @@ -205,7 +205,11 @@ int dlt_receive_open_output_file(DltReceiveData *dltdata) /* if (file_already_exists) */ glob_t outer; - if (glob(dltdata->ovalue, GLOB_TILDE | GLOB_NOSORT, NULL, &outer) == 0) { + if (glob(dltdata->ovalue, +#ifndef __ANDROID_API__ + GLOB_TILDE | +#endif + GLOB_NOSORT, NULL, &outer) == 0) { if (dltdata->vflag) { dlt_vlog(LOG_INFO, "File %s already exists, need to rename first\n", dltdata->ovalue); } @@ -223,7 +227,11 @@ int dlt_receive_open_output_file(DltReceiveData *dltdata) * foo.1000.dlt * foo.11.dlt */ - if (glob(pattern, GLOB_TILDE | GLOB_NOSORT, NULL, &inner) == 0) { + if (glob(pattern, +#ifndef __ANDROID_API__ + GLOB_TILDE | +#endif + GLOB_NOSORT, NULL, &inner) == 0) { /* search for the highest number used */ size_t i; -- cgit v1.2.1