summaryrefslogtreecommitdiff
path: root/apps/examples/tcpecho
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/tcpecho')
-rw-r--r--apps/examples/tcpecho/tcpecho_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/tcpecho/tcpecho_main.c b/apps/examples/tcpecho/tcpecho_main.c
index 9e9333e52..988778e4f 100644
--- a/apps/examples/tcpecho/tcpecho_main.c
+++ b/apps/examples/tcpecho/tcpecho_main.c
@@ -367,7 +367,11 @@ static int tcpecho_server(void)
* discover_main
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int tcpecho_main(int argc, char *argv[])
+#endif
{
int ret;