Add in extra args required for open() on Linux
This commit is contained in:
@@ -139,7 +139,11 @@ _DtCvRunInterp(
|
|||||||
* write the data to file.
|
* write the data to file.
|
||||||
*/
|
*/
|
||||||
result = -1;
|
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);
|
myFd = open(fileName, O_WRONLY | O_CREAT | O_TRUNC);
|
||||||
|
#endif
|
||||||
if (myFd != -1)
|
if (myFd != -1)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user