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/pipe.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/pipe.c')
-rw-r--r-- | nuttx/drivers/pipe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/drivers/pipe.c b/nuttx/drivers/pipe.c index 7e4581c8a..4ad5f0f99 100644 --- a/nuttx/drivers/pipe.c +++ b/nuttx/drivers/pipe.c @@ -82,8 +82,10 @@ static struct file_operations pipe_fops = pipecommon_read, /* read */ pipecommon_write, /* write */ 0, /* seek */ - 0, /* ioctl */ - 0, /* pipe */ + 0 /* ioctl */ +#ifndef CONFIG_DISABLE_POLL + , pipecommon_poll /* poll */ +#endif }; static sem_t g_pipesem = { 1 }; |