Fix *nix builds

This commit is contained in:
Stas Degteff
2006-02-18 14:06:59 +00:00
parent 6920dc1246
commit 3c82e53d5f
3 changed files with 20 additions and 13 deletions

View File

@@ -482,7 +482,7 @@ char* TokenXlat(int mode, char* input, GMsg* msg, GMsg* oldmsg, int __origarea)
FILE *pipe_in;
std::string pipe_buff;
if ((pipe_in = _popen(argbeg, "rt")) != NULL )
if ((pipe_in = popen(argbeg, "rt")) != NULL )
{
char buffer[1024];
while (!feof(pipe_in))
@@ -491,7 +491,7 @@ char* TokenXlat(int mode, char* input, GMsg* msg, GMsg* oldmsg, int __origarea)
pipe_buff += buffer;
}
_pclose(pipe_in);
pclose(pipe_in);
}
*argend = '`';