diff --git a/configure.py b/configure.py index 7d131155..f419bf40 100644 --- a/configure.py +++ b/configure.py @@ -1741,7 +1741,7 @@ config.libs = [ Object(NonMatching, "fa/pf_fsfirst.c"), Object(NonMatching, "fa/pf_fsnext.c"), Object(NonMatching, "fa/pf_fstat.c"), - Object(NonMatching, "fa/pf_fsync.c"), + Object(Matching, "fa/pf_fsync.c"), Object(Matching, "fa/pf_fwrite.c"), Object(NonMatching, "fa/pf_getdev.c"), Object(NonMatching, "fa/pf_getvol.c"), diff --git a/libs/RVL_SDK/src/fa/pf_fsync.c b/libs/RVL_SDK/src/fa/pf_fsync.c new file mode 100644 index 00000000..956685df --- /dev/null +++ b/libs/RVL_SDK/src/fa/pf_fsync.c @@ -0,0 +1,10 @@ +#include + +extern s32 PFFILE_fsync(FAFILE* stream); +extern s32 PFAPI_convertReturnValue(s32 error); + +FAError pf2_fsync(FAFILE* stream) { + s32 error = PFFILE_fsync(stream); + error = PFAPI_convertReturnValue(error); + return error; +}