diff options
author | Mark Spencer <markster@digium.com> | 2003-09-08 16:48:07 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-09-08 16:48:07 +0000 |
commit | 479a67e629385a2c43bf9383c0c23f5dae032504 (patch) | |
tree | 32674bc8c5dc21153e7c8a4548f6641aef0566bf /apps/app_agi.c | |
parent | 1e19f72077a8e2f5befb21bb5c3f2131f8b24107 (diff) |
BSD portability enhancements (bug #234)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_agi.c')
-rwxr-xr-x | apps/app_agi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_agi.c b/apps/app_agi.c index 6399c0249..294b56bd3 100755 --- a/apps/app_agi.c +++ b/apps/app_agi.c @@ -23,7 +23,7 @@ #include <unistd.h> #include <string.h> #include <stdlib.h> -#include <sys/signal.h> +#include <signal.h> #include <sys/time.h> #include <stdio.h> #include <fcntl.h> @@ -152,7 +152,7 @@ static int launch_script(char *script, char *args, int *fds, int *efd, int *opid for (x=STDERR_FILENO + 2;x<1024;x++) close(x); /* Execute script */ - execl(script, script, args, NULL); + execl(script, script, args, (char *)NULL); /* Can't use ast_log since FD's are closed */ fprintf(stderr, "Failed to execute '%s': %s\n", script, strerror(errno)); exit(1); |