Compile error version 16 Feb 2015 in Mac OS X

Hi,

Compiling version 16 Feb 2015 on Mac OS X with gcc failed because of:

…/fix_ave_chunk.cpp: In member function ‘virtual void LAMMPS_NS::FixAveChunk::end_of_step()’:
…/fix_ave_chunk.cpp:934:35: error: ‘ftruncate’ was not declared in this scope
ftruncate(fileno(fp),fileend);

An #include “unistd.h” in fix_ave_chunk.h solves this.
Seems bizarre since ftruncate() is used elsewhere w/o problem…

Best,

Agilio

There have been many new fix_ave_* modules created and uploaded by
sjplimp last week. This one #include seems to be the only obvious
omission so far and will be surely corrected soon. I got the
actual git master even compiled under mingw64 *native* on a windows
box (using git bash + tdm-gcc-64).

Regards

M.