From 91f5ecc347ab94e4f03ca7004c908e5f8df2febf Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 9 Oct 2014 10:45:43 -0600 Subject: [PATCH] fs/aio/aio.h needs to disable itself is CONFIG_FS_AIO is not defined --- configs/sama5d4-ek/knsh/defconfig.ROMFS | 2 ++ fs/aio/aio.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/configs/sama5d4-ek/knsh/defconfig.ROMFS b/configs/sama5d4-ek/knsh/defconfig.ROMFS index 11e2b684bd4..81fd5ba7034 100644 --- a/configs/sama5d4-ek/knsh/defconfig.ROMFS +++ b/configs/sama5d4-ek/knsh/defconfig.ROMFS @@ -584,6 +584,8 @@ CONFIG_USART4_2STOP=0 # CONFIG_DISABLE_PSEUDOFS_OPERATIONS is not set CONFIG_FS_READABLE=y # 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_FAT is not set # CONFIG_FS_NXFFS is not set diff --git a/fs/aio/aio.h b/fs/aio/aio.h index 85a5161cb87..0f811e9ea16 100644 --- a/fs/aio/aio.h +++ b/fs/aio/aio.h @@ -49,6 +49,8 @@ #include +#ifdef CONFIG_FS_AIO + /**************************************************************************** * 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); +#endif /* CONFIG_FS_AIO */ #endif /* __FS_AIO_AIO_H */