summaryrefslogtreecommitdiff
path: root/ttcp/rtems_ttcp.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-21 18:00:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-06-21 18:00:35 +0000
commit6a19a291bfbfc759971b57720ef75caaf941f680 (patch)
tree47f13d36533dafc7dad3b2d3324a43f74eb30839 /ttcp/rtems_ttcp.c
parentbb264e091c76ea1216bcf96c4f3414144eb8d769 (diff)
2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems_ttcp.c, ttcp_orig/ttcp.c: Now compiles reasonably cleanly with CVS head.
Diffstat (limited to 'ttcp/rtems_ttcp.c')
-rw-r--r--ttcp/rtems_ttcp.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ttcp/rtems_ttcp.c b/ttcp/rtems_ttcp.c
index 9fbd774..0a4d81b 100644
--- a/ttcp/rtems_ttcp.c
+++ b/ttcp/rtems_ttcp.c
@@ -31,6 +31,8 @@
#include <netinet/in.h>
#include <netdb.h>
#include <sys/time.h>
+#include <stdlib.h>
+#include <signal.h>
/*
* Glue between UNIX-style ttcp code and RTEMS
@@ -40,13 +42,8 @@ int rtems_ttcp_main (int argc, char **argv);
static int
select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
{
- rtems_panic ("select()");
-}
-
-static void
-(*signal(int sig, void (*func)()))()
-{
- return 0;;
+ rtems_panic ("select()");
+ return 0;
}
#define _SYS_RESOURCE_H_