casaroli commented on code in PR #20565:
URL: https://github.com/apache/nuttx/pull/20565#discussion_r4239302227


##########
include/stdio.h:
##########
@@ -33,8 +33,17 @@
 #include <stdarg.h>
 #include <time.h>
 
-#include <nuttx/fs/fs.h>
-#include <nuttx/lib/lib.h>
+#include <nuttx/fs/cookie.h>
+
+/* Kernel code, and every program of a flat or protected build, still sees
+ * the file system and C library internals through stdio.h.  The programs
+ * of a kernel build cannot use them, and do not see them.
+ */
+
+#if !defined(CONFIG_BUILD_KERNEL) || defined(__KERNEL__)

Review Comment:
   Yes. With the include removed for all builds, only two apps files fail in my 
flat and protected builds, because they do not include what they use. I will 
fix them in apps and update this PR.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to