Skip to content
Snippets Groups Projects
Commit 17edec84 authored by patacongo's avatar patacongo
Browse files

Needs conditional compilation for POLL disabled

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1273 42af7a65-404d-4744-a932-0658087f49c3
parent 0b84cc91
No related branches found
No related tags found
No related merge requests found
......@@ -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
};
/****************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment