pussuw commented on code in PR #6197: URL: https://github.com/apache/incubator-nuttx/pull/6197#discussion_r874464183
########## include/stdlib.h: ########## @@ -81,6 +81,13 @@ #define strtoll_l(s, e, b, l) strtoll(s, e, b) #define strtoull_l(s, e, b, l) strtoull(s, e, b) +/* Temporary fix for undefined exit() */ + +#ifndef __KERNEL__ +# undef exit +# define exit nx_exit Review Comment: As lib_exit.c is not yet compiled I see no way around this issue. The user side of BUILD_PROTECTED needs a definition for exit(), and to me forwarding it to the nx_exit() call gate made sense. If you wish me to do it differently I can of course do that. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org