X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ec90d6045fad32ba4d6c345558f7ea5828a3b8f9..4b9e8701e4d7cb2a6a8b577af830c96f3d303f86:/src/smpi/internals/smpi_global.cpp?ds=inline diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index 92e4e750d0..c337d3e9d5 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -37,7 +37,7 @@ # define HAVE_WORKING_MMAP 1 #endif -#if HAVE_SENDFILE +#if SG_HAVE_SENDFILE #include #endif @@ -498,7 +498,7 @@ static void smpi_copy_file(std::string src, std::string target, off_t fdin_size) XBT_DEBUG("Copy %" PRIdMAX " bytes into %s", static_cast(fdin_size), target.c_str()); bool slow_copy = true; -#if HAVE_SENDFILE +#if SG_HAVE_SENDFILE ssize_t sent_size = sendfile(fdout, fdin, NULL, fdin_size); if (sent_size == fdin_size) slow_copy = false;