diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-28 19:01:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-28 19:01:14 +0000 |
commit | 96c66099109df5198d95ed32b5278bb574f4c8e5 (patch) | |
tree | acd75c9f9d73075b8a1beef2a26e939f63ae353c /apps/nshlib/nsh.h | |
parent | a9ead1328ee2c67363e580946564c80ed91d96ff (diff) | |
download | nuttx-96c66099109df5198d95ed32b5278bb574f4c8e5.tar.gz nuttx-96c66099109df5198d95ed32b5278bb574f4c8e5.tar.bz2 nuttx-96c66099109df5198d95ed32b5278bb574f4c8e5.zip |
Add perror()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5061 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/nshlib/nsh.h')
-rw-r--r-- | apps/nshlib/nsh.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h index 439c2ffd1..dac91ba05 100644 --- a/apps/nshlib/nsh.h +++ b/apps/nshlib/nsh.h @@ -238,9 +238,14 @@ #define NSH_MAX_ARGUMENTS 6 /* strerror() produces much nicer output but is, however, quite large and - * will only be used if CONFIG_NSH_STRERROR is defined. + * will only be used if CONFIG_NSH_STRERROR is defined. Note that the strerror + * interface must also have been enabled with CONFIG_LIBC_STRERROR. */ +#ifndef CONFIG_LIBC_STRERROR +# undef CONFIG_NSH_STRERROR +#endif + #ifdef CONFIG_NSH_STRERROR # define NSH_ERRNO strerror(errno) # define NSH_ERRNO_OF(err) strerror(err) |