summaryrefslogtreecommitdiff
path: root/apps/examples/poll
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/poll')
-rw-r--r--apps/examples/poll/poll_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/poll/poll_main.c b/apps/examples/poll/poll_main.c
index 0c475fa7a..6cdb5a574 100644
--- a/apps/examples/poll/poll_main.c
+++ b/apps/examples/poll/poll_main.c
@@ -77,7 +77,11 @@
* Name: poll_main
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int poll_main(int argc, char *argv[])
+#endif
{
char buffer[64];
ssize_t nbytes;