From 7add08a30323173498ccf0364fb414643972d2e8 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 24 Sep 2003 18:54:40 +0000 Subject: [PATCH] Added configure check for spawnvp(). --- configure | 2 ++ configure.ac | 1 + include/config.h.in | 3 +++ include/wine/port.h | 2 ++ libs/port/spawn.c | 2 ++ 5 files changed, 10 insertions(+) diff --git a/configure b/configure index 54aabb9f772..b04d091b171 100755 --- a/configure +++ b/configure @@ -13616,6 +13616,7 @@ fi + for ac_func in \ _lwp_create \ _lwp_self \ @@ -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 */ -- 2.11.4.GIT