From a3df67ef8a4979b5bdad7d92b1337bb415f5d5fa Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 1 Feb 2013 14:53:38 +0000 Subject: [PATCH] NxWidgets updates from Petteri Aimonen; buildroot GDB build fix from Ken Bannister git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5592 42af7a65-404d-4744-a932-0658087f49c3 --- README.txt | 6 ++++++ libc/stdio/lib_fgets.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 571f8e04eb..da1ed10c6a 100644 --- a/README.txt +++ b/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/libc/stdio/lib_fgets.c b/libc/stdio/lib_fgets.c index 35d024ebb0..87eed285d1 100644 --- a/libc/stdio/lib_fgets.c +++ b/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 {