summaryrefslogtreecommitdiff
path: root/test/create-for-stream.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2021-07-23 17:32:39 +0200
committerUli Schlachter <psychon@znc.in>2021-07-23 17:32:39 +0200
commite689e670049b26be8c6bff69f3de372bddb8d856 (patch)
treeeced29d326e3c3c43729b26e0b203b1ab21a15e0 /test/create-for-stream.c
parent2fbd53a6b33a90a08ef6eda9e5f88e8fb3b97c1e (diff)
downloadcairo-e689e670049b26be8c6bff69f3de372bddb8d856.tar.gz
Fix build on windows
Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'test/create-for-stream.c')
-rw-r--r--test/create-for-stream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/create-for-stream.c b/test/create-for-stream.c
index 3e7577a6a..06f2db2b0 100644
--- a/test/create-for-stream.c
+++ b/test/create-for-stream.c
@@ -28,7 +28,10 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
+
+#ifndef _WIN32
#include <unistd.h>
+#endif
#if CAIRO_HAS_PS_SURFACE
#include <cairo-ps.h>
@@ -172,6 +175,7 @@ test_surface (const cairo_test_context_t *ctx,
}
/* test propagation of file errors - for now this is unix-only */
+#ifndef _WIN32
if (access("/dev/full", W_OK) == 0) {
surface = file_constructor ("/dev/full", WIDTH_IN_POINTS, HEIGHT_IN_POINTS);
cairo_surface_finish (surface);
@@ -188,6 +192,7 @@ test_surface (const cairo_test_context_t *ctx,
cairo_test_log (ctx,
"/dev/full does not exist; skipping write test.\n");
}
+#endif
/* construct the real surface */
wc.ctx = ctx;