diff options
Diffstat (limited to 'nuttx/fs/fs_write.c')
-rw-r--r-- | nuttx/fs/fs_write.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nuttx/fs/fs_write.c b/nuttx/fs/fs_write.c index 3928656ad..764b887d8 100644 --- a/nuttx/fs/fs_write.c +++ b/nuttx/fs/fs_write.c @@ -42,9 +42,6 @@ ************************************************************/ #include <nuttx/config.h> - -#if CONFIG_NFILE_DESCRIPTORS >0 - #include <sys/types.h> #include <stdio.h> #include <sched.h> @@ -55,6 +52,8 @@ * Global Functions ************************************************************/ +#if CONFIG_NFILE_DESCRIPTORS > 0 + int write(int fd, const void *buf, unsigned int nbytes) { FAR struct filelist *list; |