aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-10 21:25:06 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-10 21:25:06 +0530
commit18bb64cd431235f696720150dfbcbfc761e19ef0 (patch)
tree3756a078b3148b91aeb449d7e76568009d761b79 /exec.cpp
parentd975187433ed71120d603ab2815d11b9c80ae8be (diff)
Fixed compilation with recent changes on Linux.
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec.cpp b/exec.cpp
index 2d5021f5..2acd68fa 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -25,6 +25,7 @@
#include <time.h>
#include <vector>
#include <deque>
+#include <algorithm>
#ifdef HAVE_SIGINFO_H
#include <siginfo.h>
@@ -128,7 +129,7 @@ void exec_close( int fd )
}
/* Maybe remove this form our set of open fds */
- open_fds.erase(remove(open_fds.begin(), open_fds.end(), fd), open_fds.end());
+ open_fds.erase(std::remove(open_fds.begin(), open_fds.end(), fd), open_fds.end());
}
int exec_pipe( int fd[2])