diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-07-04 19:13:08 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-07-04 19:13:08 -0600 |
commit | 3285efc508064d44b60120ffe903c13184482869 (patch) | |
tree | 3844c1fb247d2e5d8de17b4f390b78ed19e26c65 /apps/examples/sendmail | |
parent | 9359459245f11e94dee418e424e44f598bc04039 (diff) | |
download | px4-nuttx-3285efc508064d44b60120ffe903c13184482869.tar.gz px4-nuttx-3285efc508064d44b60120ffe903c13184482869.tar.bz2 px4-nuttx-3285efc508064d44b60120ffe903c13184482869.zip |
NET: emoved all includes of uip.h; added includes of ip.h wherever needed. Tried to fix problems of the now missing sneak inclusions because uip.h was removed. There are probably a few of these that were missed.
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> |