aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_wrappers.c
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2011-06-02 01:47:26 -0500
committerPeter Seebach <peter.seebach@windriver.com>2011-06-02 01:47:26 -0500
commit89745dc43ba8779b92c5c8547652bdc923233b41 (patch)
tree1d965d0b2aae2316b72977eda918e56b6c6c5fd9 /pseudo_wrappers.c
parent72f625baa51d5cf41c24d96586535f5720e240e4 (diff)
downloadpseudo-89745dc43ba8779b92c5c8547652bdc923233b41.tar.gz
pseudo-89745dc43ba8779b92c5c8547652bdc923233b41.tar.bz2
pseudo-89745dc43ba8779b92c5c8547652bdc923233b41.zip
Add system() wrapper to force setup of the pseudo environment. Note
that we add an extra fork() so we can do the setup in a child process, but still just pass the command string to the standard system() call.
Diffstat (limited to 'pseudo_wrappers.c')
-rw-r--r--pseudo_wrappers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pseudo_wrappers.c b/pseudo_wrappers.c
index dd4a800..600a918 100644
--- a/pseudo_wrappers.c
+++ b/pseudo_wrappers.c
@@ -31,6 +31,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#include <dlfcn.h>
/* used for various specific function arguments */