summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/extconf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/extconf.c b/utils/extconf.c
index a31fe283a..80491c016 100644
--- a/utils/extconf.c
+++ b/utils/extconf.c
@@ -1330,7 +1330,6 @@ int ast_safe_system(const char *s)
int x;
#endif
int res;
- struct rusage rusage;
int status;
#if defined(HAVE_WORKING_FORK) || defined(HAVE_WORKING_VFORK)
@@ -1352,7 +1351,7 @@ int ast_safe_system(const char *s)
_exit(1);
} else if (pid > 0) {
for(;;) {
- res = wait4(pid, &status, 0, &rusage);
+ res = waitpid(pid, &status, 0);
if (res > -1) {
res = WIFEXITED(status) ? WEXITSTATUS(status) : -1;
break;