--- hatari/src/includes/file.h 2019/04/09 08:54:29 1.1.1.16 +++ hatari/src/includes/file.h 2019/04/09 08:56:56 1.1.1.18 @@ -9,10 +9,14 @@ #define HATARI_FILE_H #include "config.h" +#include /* Needed for off_t */ #ifndef HAVE_FSEEKO #define fseeko fseek #endif +#ifndef HAVE_FTELLO +#define ftello ftell +#endif extern void File_CleanFileName(char *pszFileName); extern void File_AddSlashToEndFileName(char *pszFileName); @@ -32,6 +36,8 @@ extern char* File_MakePath(const char *p extern void File_ShrinkName(char *pDestFileName, const char *pSrcFileName, int maxlen); extern FILE *File_Open(const char *path, const char *mode); extern FILE *File_Close(FILE *fp); +extern bool File_Lock(FILE *fp); +extern void File_UnLock(FILE *fp); extern bool File_InputAvailable(FILE *fp); extern void File_MakeAbsoluteSpecialName(char *pszFileName); extern void File_MakeAbsoluteName(char *pszFileName);