summaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-09-26 11:48:34 +0000
committerBram Moolenaar <Bram@vim.org>2006-09-26 11:48:34 +0000
commit89f3727bd9d8097336f763d9cdbe8d6055cab7c1 (patch)
tree2405448192d99d38b72eb4e6092422a3399cf3a7 /src/memfile.c
parent15ff6c19406f0248146a16490b28f029c463c460 (diff)
downloadvim-git-89f3727bd9d8097336f763d9cdbe8d6055cab7c1.tar.gz
updated for version 7.0-110v7.0.110
Diffstat (limited to 'src/memfile.c')
-rw-r--r--src/memfile.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/memfile.c b/src/memfile.c
index aeeb8cba9..0f0709119 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -517,7 +517,7 @@ mf_free(mfp, hp)
mf_ins_free(mfp, hp); /* put *hp in the free list */
}
-#if defined(__MORPHOS__)
+#if defined(__MORPHOS__) && defined(__libnix__)
/* function is missing in MorphOS libnix version */
extern unsigned long *__stdfiledes;
@@ -677,15 +677,19 @@ mf_sync(mfp, flags)
# else
# if defined(_DCC) || defined(__GNUC__) || defined(__MORPHOS__)
{
-# if defined(__GNUC__) && !defined(__MORPHOS__)
+# if defined(__GNUC__) && !defined(__MORPHOS__) && defined(__libnix__)
/* Have function (in libnix at least),
* but ain't got no prototype anywhere. */
extern unsigned long fdtofh(int filedescriptor);
# endif
+# if !defined(__libnix__)
+ fflush(NULL);
+# else
BPTR fh = (BPTR)fdtofh(mfp->mf_fd);
if (fh != 0)
Flush(fh);
+# endif
}
# else /* assume Manx */
Flush(_devtab[mfp->mf_fd].fd);