mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Move the typedef for size_t into _iovec.h, so that size_t is available
for struct iovec.
This commit is contained in:
parent
7e7a2c70c0
commit
f0603d5be6
3 changed files with 7 additions and 10 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue