Your using an old version of marlin firmware with a new arduino IDE
The old firmware uses the variable name fpos_t unfortunately this is now a reserved word in the newer arduino IDE.
You have to edit two files SdBaseFile.h and SdBaseFile.cpp
find all occurrences of fpos_t and change it to something else eg FatPos_t
If your using linux you can just
sed -i 's/fpos_t/FatPos_t/' SdBaseFile.h
sed -i 's/fpos_t/FatPos_t/' SdBaseFile.cpp
otherwise your going to have manually search and replace in what ever editor you have
The old firmware uses the variable name fpos_t unfortunately this is now a reserved word in the newer arduino IDE.
You have to edit two files SdBaseFile.h and SdBaseFile.cpp
find all occurrences of fpos_t and change it to something else eg FatPos_t
If your using linux you can just
sed -i 's/fpos_t/FatPos_t/' SdBaseFile.h
sed -i 's/fpos_t/FatPos_t/' SdBaseFile.cpp
otherwise your going to have manually search and replace in what ever editor you have