alsa.audio: disable building of alsa-bridge linklib until complete driver is ready
[AROS.git] / tools / collect-aros / docommand-spawn.c
blob35bc4ea3ff7e2a6d6774a2c6e5ad15eaa75b3502
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <process.h>
7 #include <errno.h>
8 #include <string.h>
9 #include <stdlib.h>
11 #include "docommand.h"
12 #include "misc.h"
14 static void _docommandv(const char *command, char *argv[], int do_path)
16 int ret = (do_path ? spawnvp : spawnv)(P_WAIT, command, argv);
17 if (ret == -1)
19 fatal(command, strerror(errno));
21 if (ret > 0)
23 exit(EXIT_FAILURE);
27 void docommandv(const char *command, char *argv[])
29 _docommandv(command, argv, 0);
32 void docommandvp(const char *command, char *argv[])
34 set_compiler_path();
35 _docommandv(command, argv, 1);