diff options
Diffstat (limited to 'src/system-w32.c')
-rw-r--r-- | src/system-w32.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/system-w32.c b/src/system-w32.c index 77117b8..3927b5d 100644 --- a/src/system-w32.c +++ b/src/system-w32.c @@ -403,6 +403,16 @@ build_w32_commandline (assuan_context_t ctx, const char * const *argv, } +static assuan_fd_t +assuan_fd_from_posix_fd (int fd) +{ + if (fd < 0) + return ASSUAN_INVALID_FD; + else + return (assuan_fd_t) _get_osfhandle (fd); +} + + int __assuan_spawn (assuan_context_t ctx, pid_t *r_pid, const char *name, const char **argv, |