_iovec.h: Ensure only one definition of struct iovec

This commit is contained in:
Joel Sherrill 2012-08-31 19:21:34 -05:00
parent f333955d79
commit b4cf93e3ad

View File

@ -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_ */