Needs conditional compilation for POLL disabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1273 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
0b84cc9139
commit
17edec8443
|
@ -84,10 +84,12 @@ static ssize_t devconsole_write(struct file *filp, const char *buffer, size_t le
|
|||
return up_hostwrite(buffer, len);
|
||||
}
|
||||
|
||||
#ifndef CONFIG_DISABLE_POLL
|
||||
static int devconsole_poll(FAR struct file *filep, FAR struct pollfd *fds)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
|
|
|
@ -85,8 +85,10 @@ struct file_operations bch_fops =
|
|||
bch_read, /* read */
|
||||
bch_write, /* write */
|
||||
0, /* seek */
|
||||
bch_ioctl, /* ioctl */
|
||||
0 /* poll */
|
||||
bch_ioctl /* ioctl */
|
||||
#ifndef CONFIG_DISABLE_POLL
|
||||
, 0 /* poll */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
@ -88,8 +88,10 @@ struct file_operations g_canops =
|
|||
can_read, /* read */
|
||||
can_write, /* write */
|
||||
0, /* seek */
|
||||
can_ioctl, /* ioctl */
|
||||
0 /* poll */
|
||||
can_ioctl /* ioctl */
|
||||
#ifndef CONFIG_DISABLE_POLL
|
||||
, 0 /* poll */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
@ -75,8 +75,10 @@ struct file_operations g_serialops =
|
|||
lowconsole_read, /* read */
|
||||
lowconsole_write, /* write */
|
||||
0, /* seek */
|
||||
lowconsole_ioctl, /* ioctl */
|
||||
0 /* poll */
|
||||
lowconsole_ioctl /* ioctl */
|
||||
#ifndef CONFIG_DISABLE_POLL
|
||||
, 0 /* poll */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue