summaryrefslogtreecommitdiff
path: root/apps/examples/thttpd/thttpd_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/thttpd/thttpd_main.c')
-rw-r--r--apps/examples/thttpd/thttpd_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/thttpd/thttpd_main.c b/apps/examples/thttpd/thttpd_main.c
index c2e6325a7..868f43438 100644
--- a/apps/examples/thttpd/thttpd_main.c
+++ b/apps/examples/thttpd/thttpd_main.c
@@ -171,7 +171,11 @@ int g_thttpdnsymbols;
* thttp_main
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int thttp_main(int argc, char *argv[])
+#endif
{
struct in_addr addr;
#ifdef CONFIG_EXAMPLES_THTTPD_NOMAC