summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-06 19:54:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-06 19:54:52 +0000
commitf3f044e95c1fcc6569ae46c5af04fed7657faa2e (patch)
tree05b1b73ced2822f936a75870a8e27e8bb13c21b9
parent2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadnetwork-demos-f3f044e95c1fcc6569ae46c5af04fed7657faa2e.tar.bz2
2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile, rtems_ttcp.c: Remove warnings. Clean up.
-rw-r--r--ttcp/ChangeLog4
-rw-r--r--ttcp/Makefile7
-rw-r--r--ttcp/rtems_ttcp.c1
3 files changed, 10 insertions, 2 deletions
diff --git a/ttcp/ChangeLog b/ttcp/ChangeLog
index 9ee3a40..b10b776 100644
--- a/ttcp/ChangeLog
+++ b/ttcp/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-06 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * Makefile, rtems_ttcp.c: Remove warnings. Clean up.
+
2007-08-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* init.c: Change clock tick to 1 millisecond.
diff --git a/ttcp/Makefile b/ttcp/Makefile
index a8a063d..f035f7c 100644
--- a/ttcp/Makefile
+++ b/ttcp/Makefile
@@ -49,14 +49,17 @@ LD_LIBS +=
# 'make clobber' already includes 'make clean'
#
-CLEAN_ADDITIONS +=
+CLEAN_ADDITIONS += ttcp
CLOBBER_ADDITIONS +=
-all: ${ARCH} $(SRCS) $(PGM)
+all: ${ARCH} $(SRCS) $(PGM) ttcp
${PGM}: $(OBJS) $(LINK_FILES)
$(make-exe)
+ttcp: ttcp_orig/ttcp.c
+ gcc -o $(@) $<
+
# Install the program(s), appending _g or _p as appropriate.
# for include files, just use $(INSTALL)
install: all
diff --git a/ttcp/rtems_ttcp.c b/ttcp/rtems_ttcp.c
index a828c66..a628b1f 100644
--- a/ttcp/rtems_ttcp.c
+++ b/ttcp/rtems_ttcp.c
@@ -26,6 +26,7 @@
#include <rtems.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/error.h>
+#include <rtems/cpuuse.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>