- if (verify_disposition ("stdin", flags & ALL_STDIN_FLAGS, self->stdin_fd, self->stdin_path) &&
- verify_disposition ("stdout", flags & ALL_STDOUT_FLAGS, self->stdout_fd, self->stdout_path) &&
- verify_disposition ("stderr", flags & ALL_STDERR_FLAGS, self->stderr_fd, self->stderr_path))
+ const gchar *stdin_path = NULL, *stdout_path = NULL, *stderr_path = NULL;
+ gint stdin_fd = -1, stdout_fd = -1, stderr_fd = -1;
+
+#ifdef G_OS_UNIX
+ stdin_fd = self->stdin_fd;
+ stdout_fd = self->stdout_fd;
+ stderr_fd = self->stderr_fd;
+ stdin_path = self->stdin_path;
+ stdout_path = self->stdout_path;
+ stderr_path = self->stderr_path;
+#endif
+
+ if (verify_disposition ("stdin", flags & ALL_STDIN_FLAGS, stdin_fd, stdin_path) &&
+ verify_disposition ("stdout", flags & ALL_STDOUT_FLAGS, stdout_fd, stdout_path) &&
+ verify_disposition ("stderr", flags & ALL_STDERR_FLAGS, stderr_fd, stderr_path))