summaryrefslogtreecommitdiff
path: root/apps/examples/udp
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-04 19:13:08 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-04 19:13:08 -0600
commit3285efc508064d44b60120ffe903c13184482869 (patch)
tree3844c1fb247d2e5d8de17b4f390b78ed19e26c65 /apps/examples/udp
parent9359459245f11e94dee418e424e44f598bc04039 (diff)
downloadnuttx-3285efc508064d44b60120ffe903c13184482869.tar.gz
nuttx-3285efc508064d44b60120ffe903c13184482869.tar.bz2
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/udp')
-rw-r--r--apps/examples/udp/target.c5
-rw-r--r--apps/examples/udp/udp-client.c4
-rw-r--r--apps/examples/udp/udp-internal.h2
-rw-r--r--apps/examples/udp/udp-server.c2
4 files changed, 11 insertions, 2 deletions
diff --git a/apps/examples/udp/target.c b/apps/examples/udp/target.c
index 8b31fc8cd..ac76aec00 100644
--- a/apps/examples/udp/target.c
+++ b/apps/examples/udp/target.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * examples/udp/nettest.c
+ * examples/udp/target.c
*
* Copyright (C) 2007, 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@@ -41,6 +41,9 @@
#include <stdio.h>
#include <debug.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
+
#include <apps/netutils/netlib.h>
#include "udp-internal.h"
diff --git a/apps/examples/udp/udp-client.c b/apps/examples/udp/udp-client.c
index 6b8473582..297cde5f5 100644
--- a/apps/examples/udp/udp-client.c
+++ b/apps/examples/udp/udp-client.c
@@ -39,7 +39,6 @@
#include <sys/types.h>
#include <sys/socket.h>
-#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
@@ -47,6 +46,9 @@
#include <string.h>
#include <errno.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
+
#include "udp-internal.h"
/****************************************************************************
diff --git a/apps/examples/udp/udp-internal.h b/apps/examples/udp/udp-internal.h
index da2be440a..49439aedb 100644
--- a/apps/examples/udp/udp-internal.h
+++ b/apps/examples/udp/udp-internal.h
@@ -45,6 +45,8 @@
# include <debug.h>
#endif
+#include <arpa/inet.h>
+
/****************************************************************************
* Definitions
****************************************************************************/
diff --git a/apps/examples/udp/udp-server.c b/apps/examples/udp/udp-server.c
index 191f89cc0..e16449b8d 100644
--- a/apps/examples/udp/udp-server.c
+++ b/apps/examples/udp/udp-server.c
@@ -45,6 +45,8 @@
#include <unistd.h>
#include <errno.h>
+#include <arpa/inet.h>
+
#include "udp-internal.h"
/****************************************************************************