summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/rtems')
-rw-r--r--cpukit/libnetworking/rtems/rtems_bootp.c1
-rw-r--r--cpukit/libnetworking/rtems/rtems_bsdnet_internal.h4
-rw-r--r--cpukit/libnetworking/rtems/rtems_syscall.c4
3 files changed, 7 insertions, 2 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bootp.c b/cpukit/libnetworking/rtems/rtems_bootp.c
index 76bb79170e..1bfdb11906 100644
--- a/cpukit/libnetworking/rtems/rtems_bootp.c
+++ b/cpukit/libnetworking/rtems/rtems_bootp.c
@@ -6,6 +6,7 @@
#include <rtems/error.h>
#include <sys/types.h>
#include <rtems/rtems_bsdnet.h>
+#include <rtems/rtems_bsdnet_internal.h>
/*
* Perform a BOOTP request
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index 6b748b3de5..d95730d7f8 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -51,6 +51,10 @@ extern void soconnwakeup (struct socket *so);
#define splimp() 0
#define splx(_s) do { (_s) = 0; } while(0)
+/* to avoid warnings */
+void *memcpy(void *dest, const void *src, size_t n);
+void *memset(void *s, int c, size_t n);
+
#define ovbcopy(f,t,n) bcopy(f,t,n)
#define copyout(f,t,n) (memcpy(t,f,n),0)
#define copyin(f,t,n) (memcpy(t,f,n),0)
diff --git a/cpukit/libnetworking/rtems/rtems_syscall.c b/cpukit/libnetworking/rtems/rtems_syscall.c
index acba1f8322..7e6210c091 100644
--- a/cpukit/libnetworking/rtems/rtems_syscall.c
+++ b/cpukit/libnetworking/rtems/rtems_syscall.c
@@ -659,13 +659,13 @@ rtems_bsdnet_close (rtems_libio_t *iop)
return 0;
}
-static int
+static ssize_t
rtems_bsdnet_read (rtems_libio_t *iop, void *buffer, unsigned32 count)
{
return recv (iop->data0, buffer, count, 0);
}
-static int
+static ssize_t
rtems_bsdnet_write (rtems_libio_t *iop, const void *buffer, unsigned32 count)
{
return send (iop->data0, buffer, count, 0);