diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-12-06 08:16:57 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-12-06 08:16:57 +0000 |
commit | 82292dc51b235b88f79d8558b5fb36a49562a14b (patch) | |
tree | 22e35dcae5ed94d5e86a2855462bcd6064c3c3f5 /cpukit | |
parent | 2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-82292dc51b235b88f79d8558b5fb36a49562a14b.tar.bz2 |
2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/uio.h: Include <sys/types.h>.
Use ssize_t for uio_resid in struct uio (From FreeBSD).
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/libnetworking/sys/uio.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index dfd3e043cb..40ce2e2aed 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org> + + * libnetworking/sys/uio.h: Include <sys/types.h>. + Use ssize_t for uio_resid in struct uio (From FreeBSD). + 2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org> * posix/Makefile.am: Unconditionally build diff --git a/cpukit/libnetworking/sys/uio.h b/cpukit/libnetworking/sys/uio.h index 2c837edc09..6b12a91260 100644 --- a/cpukit/libnetworking/sys/uio.h +++ b/cpukit/libnetworking/sys/uio.h @@ -38,6 +38,7 @@ #define _SYS_UIO_H_ #include <rtems/bsd/sys/cdefs.h> +#include <sys/types.h> /* * POSIX compliant iovec definition @@ -64,7 +65,7 @@ struct uio { struct iovec *uio_iov; /* scatter/gather list */ int uio_iovcnt; /* length of scatter/gather list */ off_t uio_offset; /* offset in target object */ - int uio_resid; /* remaining bytes to process */ + ssize_t uio_resid; /* remaining bytes to process */ enum uio_seg uio_segflg; /* address space */ enum uio_rw uio_rw; /* operation */ #if !defined(__rtems__) |