diff options
Diffstat (limited to 'apps/examples/webserver')
-rw-r--r-- | apps/examples/webserver/webserver_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/webserver/webserver_main.c b/apps/examples/webserver/webserver_main.c index 58e8757ea..e4273c9e4 100644 --- a/apps/examples/webserver/webserver_main.c +++ b/apps/examples/webserver/webserver_main.c @@ -110,7 +110,11 @@ * webserver_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int webserver_main(int argc, char *argv[]) +#endif { struct in_addr addr; #if defined(CONFIG_EXAMPLES_WEBSERVER_DHCPC) || defined(CONFIG_EXAMPLES_WEBSERVER_NOMAC) |