Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Disable mmap in FMUs
Browse files Browse the repository at this point in the history
Some platforms are unreliable and might say mmap exists for one set of
includes and say it does not in another.

Belonging to [master]:
  - #3038
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Apr 4, 2019
1 parent 0839b2f commit 30afa79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SimulationRuntime/c/util/omc_mmap.h
Expand Up @@ -35,8 +35,13 @@
extern "C" {
#endif

#include "../omc_simulation_settings.h"
#include <stdio.h>

#if !defined(HAVE_MMAP) && OMC_FMI_RUNTIME
#define HAVE_MMAP 0
#endif

#if !defined(HAVE_MMAP)
#if defined(unix) || defined(__APPLE__)
#include <unistd.h>
Expand Down

0 comments on commit 30afa79

Please sign in to comment.