diff --git a/configure b/configure index 54aabb9f772..b04d091b171 100755 --- a/configure +++ b/configure @@ -13614,6 +13614,7 @@ fi + for ac_func in \ @@ -13656,6 +13657,7 @@ for ac_func in \ settimeofday \ sigaltstack \ snprintf \ + spawnvp \ statfs \ strcasecmp \ strerror \ diff --git a/configure.ac b/configure.ac index 11b597e6662..98fceceae88 100644 --- a/configure.ac +++ b/configure.ac @@ -971,6 +971,7 @@ AC_CHECK_FUNCS(\ settimeofday \ sigaltstack \ snprintf \ + spawnvp \ statfs \ strcasecmp \ strerror \ diff --git a/include/config.h.in b/include/config.h.in index e655c14bd92..ec61e7efafb 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -458,6 +458,9 @@ /* Define to 1 if you have the 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 diff --git a/include/wine/port.h b/include/wine/port.h index 90c3798fd53..fb96b39900a 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -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 */ diff --git a/libs/port/spawn.c b/libs/port/spawn.c index 09b65581420..ed44a1e9c18 100644 --- a/libs/port/spawn.c +++ b/libs/port/spawn.c @@ -31,6 +31,7 @@ # include #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 */