autoconf: split into subdirectories; redirect calls in debug builds
[m6w6/ext-psi] / m4 / posix / sys_uio.m4
diff --git a/m4/posix/sys_uio.m4 b/m4/posix/sys_uio.m4
new file mode 100644 (file)
index 0000000..7cd4c3c
--- /dev/null
@@ -0,0 +1,11 @@
+PSI_CHECK_SYS_UIO() {
+       PSI_CONFIG_POSIX(sys/uio, sys/uio.h)
+
+       PSI_STRUCT(struct iovec, [
+               void *iov_base,
+               size_t iov_len]
+       )
+
+       PSI_DECL(ssize_t readv, [(int fd, struct iovec *iov, int iovcnt)])
+       PSI_DECL(ssize_t writev, [(int fd, struct iovec *iov, int iovcnt)])
+}