updated for version 7.0-156
diff --git a/src/memfile.c b/src/memfile.c
index 0f07091..ba2a379 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -655,7 +655,7 @@
 # endif
 #endif
 #ifdef AMIGA
-# ifdef __AROS__
+# if defined(__AROS__) || defined(__amigaos4__)
 	if (fsync(mfp->mf_fd) != 0)
 	    status = FAIL;
 # else