diff options
Diffstat (limited to 'apps/examples/sendmail')
-rw-r--r-- | apps/examples/sendmail/host.c | 4 | ||||
-rw-r--r-- | apps/examples/sendmail/hostdefs.h | 4 | ||||
-rw-r--r-- | apps/examples/sendmail/target.c | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/apps/examples/sendmail/host.c b/apps/examples/sendmail/host.c index d603372ad..28af0d53c 100644 --- a/apps/examples/sendmail/host.c +++ b/apps/examples/sendmail/host.c @@ -43,6 +43,9 @@ #include <string.h> #include <errno.h> +#include <netinet/in.h> + +#include <nuttx/net/ip.h> #include <apps/netutils/smtp.h> /**************************************************************************** @@ -99,5 +102,6 @@ int main(int argc, char **argv, char **envp) g_msg_body, strlen(g_msg_body)); smtp_close(handle); } + return 0; } diff --git a/apps/examples/sendmail/hostdefs.h b/apps/examples/sendmail/hostdefs.h index e9860c22d..e29df7856 100644 --- a/apps/examples/sendmail/hostdefs.h +++ b/apps/examples/sendmail/hostdefs.h @@ -44,8 +44,10 @@ #include <stdbool.h> #include <stdio.h> +#include <arpa/inet.h> + /**************************************************************************** - * Preprocessor Defintiions + * Pre-processor Definitions *****************************************************************************/ #define HTONS(a) htons(a) diff --git a/apps/examples/sendmail/target.c b/apps/examples/sendmail/target.c index 4d7232b4d..684f2b742 100644 --- a/apps/examples/sendmail/target.c +++ b/apps/examples/sendmail/target.c @@ -45,6 +45,10 @@ #include <errno.h> #include <net/if.h> +#include <arpa/inet.h> +#include <netinet/in.h> + +#include <nuttx/net/ip.h> #include <apps/netutils/netlib.h> #include <apps/netutils/smtp.h> |