When trying to build on Windows (after generating with CMake) within Visual Studio the build fails simply due to the following line in sundials_mpi_errors.c
#include <unistd.h>
which is only valid for unix systems.
This could for example be fixed by replacing this line by
#ifdef _WIN32
#include <io.h>
#define access _access
#else
#include <unistd.h>
#endif