diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-17 20:24:28 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-17 20:24:28 +0000 |
commit | cff1141190d60f819078be1ad0ed0186b47fd637 (patch) | |
tree | 487fc2ad11a4e20eb21f1ad746ed16d88541c05e /nuttx/drivers/fifo.c | |
parent | 33f0979adc4165594164fb13611961d60f0f2cfc (diff) | |
download | px4-nuttx-cff1141190d60f819078be1ad0ed0186b47fd637.tar.gz px4-nuttx-cff1141190d60f819078be1ad0ed0186b47fd637.tar.bz2 px4-nuttx-cff1141190d60f819078be1ad0ed0186b47fd637.zip |
Add poll() method
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1262 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/fifo.c')
-rw-r--r-- | nuttx/drivers/fifo.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 }; /**************************************************************************** |