summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/fs_poll.c')
-rw-r--r--nuttx/fs/fs_poll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/fs/fs_poll.c b/nuttx/fs/fs_poll.c
index 2f585d818..a59cee5aa 100644
--- a/nuttx/fs/fs_poll.c
+++ b/nuttx/fs/fs_poll.c
@@ -51,6 +51,8 @@
#include "fs_internal.h"
+#ifndef CONFIG_DISABLE_POLL
+
/****************************************************************************
* Definitions
****************************************************************************/
@@ -313,3 +315,5 @@ int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout)
return count;
}
+#endif /* CONFIG_DISABLE_POLL */
+