aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/m4/lib/w32spawn.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-10-20 14:48:12 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-10-20 15:00:29 +0300
commitb6f802fe434163ffe6f81843780906ae25ac4755 (patch)
treee63ee2665b40183135d1e04756f2fe091f031209 /contrib/tools/m4/lib/w32spawn.h
parent694f58a5c020bfe1028af0fd2d4947d07e2a7080 (diff)
downloadydb-b6f802fe434163ffe6f81843780906ae25ac4755.tar.gz
Update contrib/tools/m4 to 1.4.18
commit_hash:dab43d0051ce5656201a6f031d378c04dceefa2c
Diffstat (limited to 'contrib/tools/m4/lib/w32spawn.h')
-rw-r--r--contrib/tools/m4/lib/w32spawn.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/contrib/tools/m4/lib/w32spawn.h b/contrib/tools/m4/lib/w32spawn.h
index 3b5c08afcd..389054aa6d 100644
--- a/contrib/tools/m4/lib/w32spawn.h
+++ b/contrib/tools/m4/lib/w32spawn.h
@@ -1,5 +1,5 @@
/* Auxiliary functions for the creation of subprocesses. Native Windows API.
- Copyright (C) 2001, 2003-2013 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003-2016 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
@@ -15,9 +15,11 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifndef __KLIBC__
/* Get declarations of the native Windows API functions. */
-#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
+# define WIN32_LEAN_AND_MEAN
+# include <windows.h>
+#endif
/* Get _open_osfhandle(). */
#include <io.h>
@@ -123,8 +125,13 @@ undup_safer_noinherit (int tempfd, int origfd)
- mingw programs that have a global variable 'int _CRT_glob = 0;',
- Cygwin programs, when invoked from a Cygwin program.
*/
-#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037*?"
-#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+#ifndef __KLIBC__
+# define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037*?"
+# define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+#else
+# define SHELL_SPECIAL_CHARS ""
+# define SHELL_SPACE_CHARS ""
+#endif
static char **
prepare_spawn (char **argv)
{