Add in extra args required for open() on Linux

This commit is contained in:
Peter Howkins 2012-03-11 16:33:18 +00:00
parent f4a6262757
commit 56683a700b
1 changed files with 4 additions and 0 deletions

View File

@ -139,7 +139,11 @@ _DtCvRunInterp(
* write the data to file.
*/
result = -1;
#if defined(linux)
myFd = open(fileName, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU | S_IRWXG | S_IRWXO);
#else
myFd = open(fileName, O_WRONLY | O_CREAT | O_TRUNC);
#endif
if (myFd != -1)
{
/*