Merged revisions 135058 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r135058 | mvanbaak | 2008-08-01 13:43:46 +0200 (Fri, 01 Aug 2008) | 2 lines make app_ices compile on OpenBSD. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135059 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
7ec166b840
commit
45c236b778
|
@ -80,15 +80,15 @@ static int icesencode(char *filename, int fd)
|
||||||
* But many places has it in /usr/bin
|
* But many places has it in /usr/bin
|
||||||
* As a last-ditch effort, try to use PATH
|
* As a last-ditch effort, try to use PATH
|
||||||
*/
|
*/
|
||||||
execl(path_LOCAL "ices2", "ices", filename, NULL);
|
execl(path_LOCAL "ices2", "ices", filename, SENTINEL);
|
||||||
execl(path_BIN "ices2", "ices", filename, NULL);
|
execl(path_BIN "ices2", "ices", filename, SENTINEL);
|
||||||
execlp("ices2", "ices", filename, NULL);
|
execlp("ices2", "ices", filename, SENTINEL);
|
||||||
|
|
||||||
ast_debug(1, "Couldn't find ices version 2, attempting to use ices version 1.");
|
ast_debug(1, "Couldn't find ices version 2, attempting to use ices version 1.");
|
||||||
|
|
||||||
execl(path_LOCAL "ices", "ices", filename, NULL);
|
execl(path_LOCAL "ices", "ices", filename, SENTINEL);
|
||||||
execl(path_BIN "ices", "ices", filename, NULL);
|
execl(path_BIN "ices", "ices", filename, SENTINEL);
|
||||||
execlp("ices", "ices", filename, NULL);
|
execlp("ices", "ices", filename, SENTINEL);
|
||||||
|
|
||||||
ast_log(LOG_WARNING, "Execute of ices failed, could not find command.\n");
|
ast_log(LOG_WARNING, "Execute of ices failed, could not find command.\n");
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
Reference in New Issue