From: Oleg Lyovin Date: Tue, 18 Jul 2017 08:32:42 +0000 (+0300) Subject: apps/kernel_sample: fix async io test X-Git-Tag: 1.1_Public_Release~359^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae6e7ae81d22554aeeee9ad1bf237e94953ec36a;p=rtos%2Ftinyara.git apps/kernel_sample: fix async io test aio.c compiles only when CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO is enable, so in order to use it's functions we need to check whether CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO is enabled. Signed-off-by: Oleg Lyovin --- diff --git a/apps/examples/kernel_sample/kernel_sample_main.c b/apps/examples/kernel_sample/kernel_sample_main.c index f3e6efd..fe5f3ff 100644 --- a/apps/examples/kernel_sample/kernel_sample_main.c +++ b/apps/examples/kernel_sample/kernel_sample_main.c @@ -323,7 +323,7 @@ static int user_main(int argc, char *argv[]) check_test_memory_usage(); #endif -#ifdef CONFIG_FS_AIO +#if defined(CONFIG_FS_AIO) && defined(CONFIG_EXAMPLES_KERNEL_SAMPLE_AIO) /* Check asynchronous I/O */ printf("\nuser_main: AIO test\n");