diff options
Diffstat (limited to 'apps/examples/wget/target.c')
-rw-r--r-- | apps/examples/wget/target.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/wget/target.c b/apps/examples/wget/target.c index 8d04bd769..5ffeb8b61 100644 --- a/apps/examples/wget/target.c +++ b/apps/examples/wget/target.c @@ -107,7 +107,11 @@ static void callback(FAR char **buffer, int offset, int datend, * wget_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int wget_main(int argc, char *argv[]) +#endif { struct in_addr addr; #if defined(CONFIG_EXAMPLES_WGET_NOMAC) |