]> AND Public Git Repository - simgrid.git/blobdiff - src/xbt/mmalloc/mm.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
When mmap-ing, ensute that offset is set to 0 if anon mmap
[simgrid.git] / src / xbt / mmalloc / mm.c
index 031bb3ee313aa160822372fedc758b2b207dc461..be48e421d3c094ca69d71bc63249545c04197e46 100644 (file)
 
 /* Copyright 1996, 2000 Free Software Foundation  */
 
-#ifdef HAVE_UNISTD_H
+#define _GNU_SOURCE
+#include "src/internal_config.h"
+#if HAVE_UNISTD_H
 #include <unistd.h>             /* Prototypes for lseek, sbrk (maybe) */
 #endif
+
 #include "mfree.c"
 #include "mmalloc.c"
 #include "mrealloc.c"