From 0e5b02552a53174d4decf3f4278b650739c5f747 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 17 Aug 2018 16:06:01 -0600 Subject: [PATCH] inclued/stdio.h: popen()/pclose() are not available in KERNEL mode because they depend on task_spawn() which is not available in KERNEL mode. --- include/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdio.h b/include/stdio.h index 064cc02acd..9a13052b5b 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -211,7 +211,7 @@ int remove(FAR const char *path); * apps/system/open for implementation. */ -#ifndef __KERNEL__ +#if !defined(CONFIG_BUILD_KERNEL) && !defined(__KERNEL__) FILE *popen(FAR const char *command, FAR const char *mode); int pclose(FILE *stream); #endif