fs/aio/aio.h needs to disable itself is CONFIG_FS_AIO is not defined

This commit is contained in:
Gregory Nutt 2014-10-09 10:45:43 -06:00
parent a4d157bb2d
commit 91f5ecc347
2 changed files with 5 additions and 0 deletions

View File

@ -584,6 +584,8 @@ CONFIG_USART4_2STOP=0
# CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set # CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set
CONFIG_FS_READABLE=y CONFIG_FS_READABLE=y
# CONFIG_FS_WRITABLE is not set # CONFIG_FS_WRITABLE is not set
# CONFIG_FS_NAMED_SEMAPHORES is not set
CONFIG_FS_MQUEUE_MPATH="/var/mqueue"
# CONFIG_FS_RAMMAP is not set # CONFIG_FS_RAMMAP is not set
# CONFIG_FS_FAT is not set # CONFIG_FS_FAT is not set
# CONFIG_FS_NXFFS is not set # CONFIG_FS_NXFFS is not set

View File

@ -49,6 +49,8 @@
#include <nuttx/wqueue.h> #include <nuttx/wqueue.h>
#ifdef CONFIG_FS_AIO
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
@ -250,4 +252,5 @@ int aio_queue(FAR struct aio_container_s *aioc, worker_t worker);
int aio_signal(pid_t pid, FAR struct aiocb *aiocbp); int aio_signal(pid_t pid, FAR struct aiocb *aiocbp);
#endif /* CONFIG_FS_AIO */
#endif /* __FS_AIO_AIO_H */ #endif /* __FS_AIO_AIO_H */