Added configure check for spawnvp().

This commit is contained in:
Pavel Roskin 2003-09-24 18:54:40 +00:00 committed by Alexandre Julliard
parent 14b215a478
commit 7add08a303
5 changed files with 10 additions and 0 deletions

2
configure vendored
View File

@ -13614,6 +13614,7 @@ fi
for ac_func in \ for ac_func in \
@ -13656,6 +13657,7 @@ for ac_func in \
settimeofday \ settimeofday \
sigaltstack \ sigaltstack \
snprintf \ snprintf \
spawnvp \
statfs \ statfs \
strcasecmp \ strcasecmp \
strerror \ strerror \

View File

@ -971,6 +971,7 @@ AC_CHECK_FUNCS(\
settimeofday \ settimeofday \
sigaltstack \ sigaltstack \
snprintf \ snprintf \
spawnvp \
statfs \ statfs \
strcasecmp \ strcasecmp \
strerror \ strerror \

View File

@ -458,6 +458,9 @@
/* Define to 1 if you have the <soundcard.h> header file. */ /* Define to 1 if you have the <soundcard.h> header file. */
#undef HAVE_SOUNDCARD_H #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'. */ /* Define to 1 if the system has the type `ssize_t'. */
#undef HAVE_SSIZE_T #undef HAVE_SSIZE_T

View File

@ -276,7 +276,9 @@ extern int mkstemps(char *template, int suffix_len);
# define _P_NOWAITO 3 # define _P_NOWAITO 3
# define _P_DETACH 4 # define _P_DETACH 4
#endif #endif
#ifndef HAVE_SPAWNVP
extern int spawnvp(int mode, const char *cmdname, char *const argv[]); extern int spawnvp(int mode, const char *cmdname, char *const argv[]);
#endif
/* Interlocked functions */ /* Interlocked functions */

View File

@ -31,6 +31,7 @@
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifndef HAVE_SPAWNVP
int spawnvp(int mode, const char *cmdname, char *const argv[]) int spawnvp(int mode, const char *cmdname, char *const argv[])
{ {
#ifndef HAVE__SPAWNVP #ifndef HAVE__SPAWNVP
@ -72,3 +73,4 @@ int spawnvp(int mode, const char *cmdname, char *const argv[])
return _spawnvp(mode, cmdname, argv); return _spawnvp(mode, cmdname, argv);
#endif /* HAVE__SPAWNVP */ #endif /* HAVE__SPAWNVP */
} }
#endif /* HAVE_SPAWNVP */