Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix msg-host-on-off tesh
[simgrid.git] / src / mc / mc_page_snapshot.cpp
index 2b905c0..2d09521 100644 (file)
@@ -1,5 +1,6 @@
 #include "mc_page_store.h"
 #include "mc_mmu.h"
+#include "mc_private.h"
 
 #include <xbt/mmalloc.h>
 
@@ -105,7 +106,8 @@ static size_t pread_whole(int fd, void* buf, size_t count, off_t offset) {
   return res;
 }
 
-static inline void mc_ensure_fd(int* fd, const char* path, int flags) {
+static inline  __attribute__ ((always_inline))
+void mc_ensure_fd(int* fd, const char* path, int flags) {
   if (*fd != -1)
     return;
   *fd = open(path, flags);