diff options
Diffstat (limited to 'apps/examples/sendmail')
-rw-r--r-- | apps/examples/sendmail/target.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/sendmail/target.c b/apps/examples/sendmail/target.c index 684f2b742..4424093da 100644 --- a/apps/examples/sendmail/target.c +++ b/apps/examples/sendmail/target.c @@ -106,7 +106,11 @@ static const char g_msg_body[] = CONFIG_EXAMPLES_SENDMAIL_BODY "\r\n"; * sendmail_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int sendmail_main(int argc, char *argv[]) +#endif { struct in_addr addr; #if defined(CONFIG_EXAMPLES_SENDMAIL_NOMAC) |