Index: library/mongodb/nsfmongo.c =================================================================== diff -u -rae081c0f1926da915e0584d8561abaa8a2a022a4 -r8eea27e08c75115db1bfea98a7bf2393c2e8f95c --- library/mongodb/nsfmongo.c (.../nsfmongo.c) (revision ae081c0f1926da915e0584d8561abaa8a2a022a4) +++ library/mongodb/nsfmongo.c (.../nsfmongo.c) (revision 8eea27e08c75115db1bfea98a7bf2393c2e8f95c) @@ -1411,7 +1411,7 @@ if (withSource == GridfilesourceFileIdx) { uint8_t buf[MONGOC_GRIDFS_READ_CHUNK]; - struct iovec iov = { buf, 0 }; + mongoc_iovec_t iov = { buf, 0 }; int fd = open(value, O_RDONLY); if (fd < 1) { @@ -1437,7 +1437,7 @@ } close(fd); } else { - struct iovec iov = { (char *)value, strlen(value) }; + mongoc_iovec_t iov = { (char *)value, strlen(value) }; mongoc_gridfs_file_writev(gridFile, &iov, 1, 0); } if (result == TCL_OK) { @@ -1646,7 +1646,7 @@ { ssize_t readSize; Tcl_Obj *resultObj = Tcl_NewByteArrayObj(NULL, size); - struct iovec iov = { NULL, (size_t)size }; + mongoc_iovec_t iov = { NULL, (size_t)size }; assert(size > 0);