1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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

View file

@ -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)
{ {
/* /*