summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-08-31 19:21:34 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-08-31 19:21:34 -0500
commitb4cf93e3ad705e8cf5b121652844a9de6d1c056b (patch)
tree27c6c3aa1e33326625148f27d665f86989a44167
parentBuild System: Add option to disable IPV6 in orderly fashion (diff)
downloadrtems-libbsd-b4cf93e3ad705e8cf5b121652844a9de6d1c056b.tar.bz2
_iovec.h: Ensure only one definition of struct iovec
-rw-r--r--freebsd/sys/_iovec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/freebsd/sys/_iovec.h b/freebsd/sys/_iovec.h
index aef21a58..b259a2e1 100644
--- a/freebsd/sys/_iovec.h
+++ b/freebsd/sys/_iovec.h
@@ -40,9 +40,19 @@ typedef __size_t size_t;
#define _SIZE_T_DECLARED
#endif
+#ifdef __rtems__
+#ifndef __IOVEC_DEFINED
+#define __IOVEC_DEFINED
struct iovec {
void *iov_base; /* Base address. */
size_t iov_len; /* Length. */
};
+#endif
+#else
+struct iovec {
+ void *iov_base; /* Base address. */
+ size_t iov_len; /* Length. */
+};
+#endif
#endif /* !_SYS__IOVEC_HH_ */