summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/vfd_swmr_writer.c')
-rw-r--r--test/vfd_swmr_writer.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/vfd_swmr_writer.c b/test/vfd_swmr_writer.c
index be45a68..3ef1009 100644
--- a/test/vfd_swmr_writer.c
+++ b/test/vfd_swmr_writer.c
@@ -29,12 +29,13 @@
/* Headers */
/***********/
-#include <unistd.h> /* getopt(3) */
-
#include "h5test.h"
#include "vfd_swmr_common.h"
#include "swmr_common.h"
+/* Uses getopt */
+#ifndef H5_HAVE_WIN32_API
+
/********************/
/* Local Prototypes */
/********************/
@@ -427,3 +428,13 @@ main(int argc, char * const *argv)
return 0;
}
+#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 */