Skip to content

Commit

Permalink
Fix for gcc
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20320 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 30, 2014
1 parent 8502e45 commit 3949791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/util/omc_mmap.c
Expand Up @@ -59,7 +59,7 @@ omc_mmap_read_unix omc_mmap_open_read_unix(const char *fileName)
omc_mmap_write_unix omc_mmap_open_write_unix(const char *fileName, size_t size)
{
omc_mmap_write_unix res = {0};
int fd = open(fileName, O_RDWR | O_CREAT);
int fd = open(fileName, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (fd < 0) {
throwStreamPrint(NULL, "Failed to open file %s for reading: %s\n", fileName, strerror(errno));
}
Expand Down

0 comments on commit 3949791

Please sign in to comment.