summaryrefslogtreecommitdiff
path: root/gettext-tools/gnulib-lib/spawn-pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-tools/gnulib-lib/spawn-pipe.c')
-rw-r--r--gettext-tools/gnulib-lib/spawn-pipe.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gettext-tools/gnulib-lib/spawn-pipe.c b/gettext-tools/gnulib-lib/spawn-pipe.c
index a87844e..006fa8b 100644
--- a/gettext-tools/gnulib-lib/spawn-pipe.c
+++ b/gettext-tools/gnulib-lib/spawn-pipe.c
@@ -1,5 +1,5 @@
/* Creation of subprocesses, communicating via pipes.
- Copyright (C) 2001-2004, 2006-2015 Free Software Foundation, Inc.
+ Copyright (C) 2001-2004, 2006-2016 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
@@ -35,7 +35,8 @@
#define _(str) gettext (str)
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ || defined __KLIBC__)
/* Native Windows API. */
# include <process.h>
@@ -116,7 +117,8 @@ create_pipe (const char *progname,
bool slave_process, bool exit_on_error,
int fd[2])
{
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+ || defined __KLIBC__)
/* Native Windows API.
This uses _pipe(), dup2(), and spawnv(). It could also be implemented