From cff1141190d60f819078be1ad0ed0186b47fd637 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 17 Nov 2008 20:24:28 +0000 Subject: Add poll() method git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1262 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/drivers/fifo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nuttx/drivers/fifo.c') diff --git a/nuttx/drivers/fifo.c b/nuttx/drivers/fifo.c index fb17e3461..7775af9ae 100644 --- a/nuttx/drivers/fifo.c +++ b/nuttx/drivers/fifo.c @@ -74,8 +74,10 @@ static struct file_operations fifo_fops = pipecommon_read, /* read */ pipecommon_write, /* write */ 0, /* seek */ - 0, /* ioctl */ - 0 /* poll */ + 0 /* ioctl */ +#ifndef CONFIG_DISABLE_POLL + , pipecommon_poll /* poll */ +#endif }; /**************************************************************************** -- cgit v1.2.3