X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3bda7845c0cceaaeedd5d0371434927c8cf6231d..2c8c164d58104acb6256b6d8efd476a6a2165b8a:/src/xbt/memory_map.cpp diff --git a/src/xbt/memory_map.cpp b/src/xbt/memory_map.cpp index 0fc10cba9e..7d2888b250 100644 --- a/src/xbt/memory_map.cpp +++ b/src/xbt/memory_map.cpp @@ -9,7 +9,9 @@ #include #include -#include +#ifdef __linux__ +# include +#endif #include #include @@ -165,7 +167,7 @@ XBT_PRIVATE std::vector get_memory_map(pid_t pid) std::free(line); std::fclose(fp); - return std::move(ret); + return ret; #else /* On FreeBSD, kinfo_getvmmap() could be used but mmap() support is disabled anyway. */