Using native spawnvp if possible

Pavel Roskin proski at gnu.org
Tue Sep 23 18:35:40 CDT 2003


On Tue, 23 Sep 2003, Vincent [ISO-8859-1] B?ron wrote:

> Your patch is missing :)

Fixed.  Thanks!

-- 
Regards,
Pavel Roskin
-------------- next part --------------
--- configure.ac
+++ configure.ac
@@ -971,6 +971,7 @@
 	settimeofday \
 	sigaltstack \
 	snprintf \
+	spawnvp \
 	statfs \
 	strcasecmp \
 	strerror \
--- include/wine/port.h
+++ include/wine/port.h
@@ -276,7 +276,9 @@
 # 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 */
 
--- libs/port/spawn.c
+++ libs/port/spawn.c
@@ -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 *cmdnam
     return _spawnvp(mode, cmdname, argv);
 #endif  /* HAVE__SPAWNVP */
 }
+#endif  /* HAVE_SPAWNVP */


More information about the wine-patches mailing list