nicolasbock 15/02/19 18:32:04 Added: chunk.patch Log: sci-physics/lammps: Adding new version. Also added a patch necessary to build this version. The patch has been reported to upstream (on their mailing list), and will be dropped once upstream adopts the fix. (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key AC91CA52)
Revision Changes Path 1.1 sci-physics/lammps/files/chunk.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lammps/files/chunk.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lammps/files/chunk.patch?rev=1.1&content-type=text/plain Index: chunk.patch =================================================================== --- lammps-13Feb15/src/fix_ave_chunk.cpp 2015-02-13 09:53:48.000000000 -0700 +++ lammps-13Feb15-new/src/fix_ave_chunk.cpp 2015-02-19 09:16:22.000000000 -0700 @@ -11,6 +11,9 @@ See the README file in the top-level LAMMPS directory. ------------------------------------------------------------------------- */ +#include <unistd.h> +#include <sys/types.h> + #include "string.h" #include "fix_ave_chunk.h" #include "atom.h" @@ -930,7 +933,7 @@ fflush(fp); if (overwrite) { - long fileend = ftell(fp); + off_t fileend = ftell(fp); ftruncate(fileno(fp),fileend); } }
