mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-17 23:01:53 +08:00
_iovec.h: Ensure only one definition of struct iovec
This commit is contained in:
parent
f333955d79
commit
b4cf93e3ad
@ -40,9 +40,19 @@ typedef __size_t size_t;
|
|||||||
#define _SIZE_T_DECLARED
|
#define _SIZE_T_DECLARED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __rtems__
|
||||||
|
#ifndef __IOVEC_DEFINED
|
||||||
|
#define __IOVEC_DEFINED
|
||||||
struct iovec {
|
struct iovec {
|
||||||
void *iov_base; /* Base address. */
|
void *iov_base; /* Base address. */
|
||||||
size_t iov_len; /* Length. */
|
size_t iov_len; /* Length. */
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
struct iovec {
|
||||||
|
void *iov_base; /* Base address. */
|
||||||
|
size_t iov_len; /* Length. */
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* !_SYS__IOVEC_HH_ */
|
#endif /* !_SYS__IOVEC_HH_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user