Move the typedef for size_t into _iovec.h, so that size_t is available

for struct iovec.
This commit is contained in:
Mike Barcroft 2003-02-26 20:16:58 +00:00
parent 7e7a2c70c0
commit f0603d5be6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111567
3 changed files with 7 additions and 10 deletions

View file

@ -37,6 +37,13 @@
#ifndef _SYS__IOVEC_H_
#define _SYS__IOVEC_H_
#include <sys/_types.h>
#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. */

View file

@ -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

View file

@ -41,11 +41,6 @@
#include <sys/_types.h>
#include <sys/_iovec.h>
#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