summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ee045f4)
Some systems define MAP_ANON instead of MAP_ANOYMOUS.
#include <string.h>
#include <stdio.h>
#include <string.h>
#include <stdio.h>
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_bench, smpi,
"Logging specific to SMPI (benchmarking)");
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_bench, smpi,
"Logging specific to SMPI (benchmarking)");
Contributed by Fred Fish at Cygnus Support. fnf@cygnus.com */
Contributed by Fred Fish at Cygnus Support. fnf@cygnus.com */
-#ifndef MAP_ANONYMOUS
-#define MAP_ANONYMOUS MAP_ANON
-#endif
-
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* Prototypes for lseek */
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* Prototypes for lseek */
#endif
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
#define PAGE_ALIGN(addr) (void*) (((long)(addr) + xbt_pagesize - 1) & \
~((long)xbt_pagesize - 1))
#define PAGE_ALIGN(addr) (void*) (((long)(addr) + xbt_pagesize - 1) & \
~((long)xbt_pagesize - 1))