- int fd = open(szFileName, O_WRONLY | O_CREAT |
- (bOverwrite ? O_TRUNC : O_EXCL), access);
+#ifdef __SALFORDC__
+ int fd = open(szFileName, O_WRONLY | O_CREAT |
+ (bOverwrite ? O_TRUNC : O_EXCL));
+#else
+ int fd = open(szFileName, O_WRONLY | O_CREAT |
+ (bOverwrite ? O_TRUNC : O_EXCL), accessMode);
+#endif