diff options
Diffstat (limited to 'apps/examples/nettest')
-rw-r--r-- | apps/examples/nettest/nettest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/nettest/nettest.c b/apps/examples/nettest/nettest.c index a24ce30f4..1db57744e 100644 --- a/apps/examples/nettest/nettest.c +++ b/apps/examples/nettest/nettest.c @@ -67,7 +67,11 @@ * nettest_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int nettest_main(int argc, char *argv[]) +#endif { struct in_addr addr; #ifdef CONFIG_EXAMPLES_NETTEST_NOMAC |