aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/filter_fork.h
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/filter_fork.h')
-rw-r--r--libarchive/filter_fork.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libarchive/filter_fork.h b/libarchive/filter_fork.h
index 908e7cdd4ddd..2bf290c4d9e4 100644
--- a/libarchive/filter_fork.h
+++ b/libarchive/filter_fork.h
@@ -32,8 +32,13 @@
#error This header is only to be used internally to libarchive.
#endif
-pid_t
-__archive_create_child(const char *cmd, int *child_stdin, int *child_stdout);
+int
+__archive_create_child(const char *cmd, int *child_stdin, int *child_stdout,
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ HANDLE *out_child);
+#else
+ pid_t *out_child);
+#endif
void
__archive_check_child(int in, int out);