From f0603d5be6dbd6c4de2d44a6090b87d2e4a8a3ae Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Wed, 26 Feb 2003 20:16:58 +0000 Subject: [PATCH] Move the typedef for size_t into _iovec.h, so that size_t is available for struct iovec. --- sys/sys/_iovec.h | 7 +++++++ sys/sys/socket.h | 5 ----- sys/sys/uio.h | 5 ----- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/sys/sys/_iovec.h b/sys/sys/_iovec.h index fac5f27306f..537d2d305e8 100644 --- a/sys/sys/_iovec.h +++ b/sys/sys/_iovec.h @@ -37,6 +37,13 @@ #ifndef _SYS__IOVEC_H_ #define _SYS__IOVEC_H_ +#include + +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED +#endif + struct iovec { void *iov_base; /* Base address. */ size_t iov_len; /* Length. */ diff --git a/sys/sys/socket.h b/sys/sys/socket.h index a078c4fe310..163d36be6ad 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -73,11 +73,6 @@ typedef __sa_family_t sa_family_t; #define _SA_FAMILY_T_DECLARED #endif -#ifndef _SIZE_T_DECLARED -typedef __size_t size_t; -#define _SIZE_T_DECLARED -#endif - #ifndef _SOCKLEN_T_DECLARED typedef __socklen_t socklen_t; #define _SOCKLEN_T_DECLARED diff --git a/sys/sys/uio.h b/sys/sys/uio.h index e180356d87a..88575ac6fc0 100644 --- a/sys/sys/uio.h +++ b/sys/sys/uio.h @@ -41,11 +41,6 @@ #include #include -#ifndef _SIZE_T_DECLARED -typedef __size_t size_t; -#define _SIZE_T_DECLARED -#endif - #ifndef _SSIZE_T_DECLARED typedef __ssize_t ssize_t; #define _SSIZE_T_DECLARED