summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/ostest/waitpid.c')
-rw-r--r--apps/examples/ostest/waitpid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/ostest/waitpid.c b/apps/examples/ostest/waitpid.c
index 6b6de7908..f31a25543 100644
--- a/apps/examples/ostest/waitpid.c
+++ b/apps/examples/ostest/waitpid.c
@@ -67,7 +67,11 @@ static int g_waitpids[NCHILDREN];
* Priviate Functions
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
static int waitpid_main(int argc, char *argv[])
+#endif
{
pid_t me = getpid();