diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-08-02 12:56:52 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-08-02 12:56:52 +0000 |
commit | 74bfeefc4708ef1937f464fa96afd09a8790ac4f (patch) | |
tree | 1f6b44c21aa76024747b31a63a8c65b5e855ff4b /nuttx/lib | |
parent | 18d1a4bb973a3c084d8cffdec98a49e4f8c79496 (diff) | |
download | px4-nuttx-74bfeefc4708ef1937f464fa96afd09a8790ac4f.tar.gz px4-nuttx-74bfeefc4708ef1937f464fa96afd09a8790ac4f.tar.bz2 px4-nuttx-74bfeefc4708ef1937f464fa96afd09a8790ac4f.zip |
Fix build problems with different configuratin options
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2004 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/lib_fileno.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/lib/lib_fileno.c b/nuttx/lib/lib_fileno.c index b91798974..65bd54a2d 100644 --- a/nuttx/lib/lib_fileno.c +++ b/nuttx/lib/lib_fileno.c @@ -43,11 +43,15 @@ #include <stdio.h> #include <errno.h> +#include <nuttx/fs.h> + +#if CONFIG_NFILE_STREAMS > 0 + /**************************************************************************** * Global Functions ****************************************************************************/ -int ileno(FAR FILE *stream) +int fileno(FAR FILE *stream) { int ret = -1; if (stream) @@ -62,4 +66,5 @@ int ileno(FAR FILE *stream) } return ret; } +#endif /* CONFIG_NFILE_STREAMS */ |