summaryrefslogtreecommitdiff
path: root/src/console/dlt-receive.c
diff options
context:
space:
mode:
authorFelix Herrmann <fherrmann@de.adit-jv.com>2019-12-10 16:29:45 +0100
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commitf4325524cb5acdddbe26d32fab49aeed1d7f0b23 (patch)
treebfa46c9306a535472bdfb78f1c93007b896a860e /src/console/dlt-receive.c
parent048c3d9fdfdb1a7e5ed45cc0d55b9f9389fdb6bb (diff)
downloadDLT-daemon-f4325524cb5acdddbe26d32fab49aeed1d7f0b23.tar.gz
Android: Enable Android build
Signed-off-by: Felix Herrmann <fherrmann@de.adit-jv.com> Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
Diffstat (limited to 'src/console/dlt-receive.c')
-rw-r--r--src/console/dlt-receive.c12
1 files changed, 10 insertions, 2 deletions
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;