Skip to content
Snippets Groups Projects
Commit 7add08a3 authored by Pavel Roskin's avatar Pavel Roskin Committed by Alexandre Julliard
Browse files

Added configure check for spawnvp().

parent 14b215a4
No related branches found
No related tags found
No related merge requests found
......@@ -13614,6 +13614,7 @@ fi
 
 
 
 
 
for ac_func in \
......@@ -13656,6 +13657,7 @@ for ac_func in \
settimeofday \
sigaltstack \
snprintf \
spawnvp \
statfs \
strcasecmp \
strerror \
......
......@@ -971,6 +971,7 @@ AC_CHECK_FUNCS(\
settimeofday \
sigaltstack \
snprintf \
spawnvp \
statfs \
strcasecmp \
strerror \
......
......@@ -458,6 +458,9 @@
/* Define to 1 if you have the <soundcard.h> header file. */
#undef HAVE_SOUNDCARD_H
/* Define to 1 if you have the `spawnvp' function. */
#undef HAVE_SPAWNVP
/* Define to 1 if the system has the type `ssize_t'. */
#undef HAVE_SSIZE_T
......
......@@ -276,7 +276,9 @@ extern int mkstemps(char *template, int suffix_len);
# define _P_NOWAITO 3
# define _P_DETACH 4
#endif
#ifndef HAVE_SPAWNVP
extern int spawnvp(int mode, const char *cmdname, char *const argv[]);
#endif
/* Interlocked functions */
......
......@@ -31,6 +31,7 @@
# include <unistd.h>
#endif
#ifndef HAVE_SPAWNVP
int spawnvp(int mode, const char *cmdname, char *const argv[])
{
#ifndef HAVE__SPAWNVP
......@@ -72,3 +73,4 @@ int spawnvp(int mode, const char *cmdname, char *const argv[])
return _spawnvp(mode, cmdname, argv);
#endif /* HAVE__SPAWNVP */
}
#endif /* HAVE_SPAWNVP */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment