diff options
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/README.txt | 6 | ||||
-rw-r--r-- | nuttx/libc/stdio/lib_fgets.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/README.txt b/nuttx/README.txt index 571f8e04e..da1ed10c6 100644 --- a/nuttx/README.txt +++ b/nuttx/README.txt @@ -533,6 +533,12 @@ NuttX Buildroot Toolchain an ARM Cortex-M3/4, you will need to set CONFIG_ARMV7M_OABI_TOOLCHAIN in the .config file in order to pick the right tool prefix. + If the make system ever picks the wrong prefix for your toolchain, you + can always specify the prefix on the command to override the default + like: + + make CROSSDEV=arm-nuttx-elf + SHELLS ^^^^^^ diff --git a/nuttx/libc/stdio/lib_fgets.c b/nuttx/libc/stdio/lib_fgets.c index 35d024ebb..87eed285d 100644 --- a/nuttx/libc/stdio/lib_fgets.c +++ b/nuttx/libc/stdio/lib_fgets.c @@ -150,7 +150,7 @@ char *fgets(FAR char *buf, int buflen, FILE *stream) if (ch == '\n') #elif defined(CONFIG_EOL_IS_CR) if (ch == '\r') -#else /* elif CONFIG_EOL_IS_EITHER_CRLF */ +#else /* elif defined(CONFIG_EOL_IS_EITHER_CRLF) */ if (ch == '\n' || ch == '\r') #endif { |