summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/fs_ioctl.c')
-rw-r--r--nuttx/fs/fs_ioctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/fs/fs_ioctl.c b/nuttx/fs/fs_ioctl.c
index 4202ce8b3..c93311e63 100644
--- a/nuttx/fs/fs_ioctl.c
+++ b/nuttx/fs/fs_ioctl.c
@@ -51,6 +51,8 @@
* Global Functions
************************************************************/
+#if CONFIG_NFILE_DESCRIPTORS > 0
+
int ioctl(int fd, int req, unsigned long arg)
{
FAR struct filelist *list;
@@ -83,3 +85,5 @@ int ioctl(int fd, int req, unsigned long arg)
}
return ret;
}
+
+#endif /* CONFIG_NFILE_DESCRIPTORS */