summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_addrem_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/vfd_swmr_addrem_writer.c')
-rw-r--r--test/vfd_swmr_addrem_writer.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/vfd_swmr_addrem_writer.c b/test/vfd_swmr_addrem_writer.c
index b4c0e1f..9af54cc 100644
--- a/test/vfd_swmr_addrem_writer.c
+++ b/test/vfd_swmr_addrem_writer.c
@@ -32,7 +32,7 @@
/* Headers */
/***********/
-#include <err.h> /* errx(3) */
+
#include "h5test.h"
#include "vfd_swmr_common.h"
@@ -46,6 +46,10 @@
/* Local Prototypes */
/********************/
+#ifndef H5_HAVE_WIN32_API
+
+#include <err.h> /* errx(3) */
+
static hid_t open_skeleton(const char *filename, unsigned verbose);
static int addrem_records(hid_t fid, unsigned verbose, unsigned long nops,
unsigned long flush_count);
@@ -474,3 +478,14 @@ int main(int argc, const char *argv[])
return 0;
} /* main() */
+
+#else /* H5_HAVE_WIN32_API */
+
+int
+main(void)
+{
+ HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ return EXIT_SUCCESS;
+} /* end main() */
+
+#endif /* H5_HAVE_WIN32_API */