Mercurial > vim
comparison src/memfile.c @ 9536:b2aada04d84e v7.4.2048
commit https://github.com/vim/vim/commit/a06ecab7a5159e744448ace731036f0dc5f87dd4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 16 14:47:36 2016 +0200
patch 7.4.2048
Problem: There is still code and help for unsupported systems.
Solution: Remove the code and text. (Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Jul 2016 15:00:07 +0200 |
parents | f094d4085014 |
children | fd9727ae3c49 |
comparison
equal
deleted
inserted
replaced
9535:eb813d0c8346 | 9536:b2aada04d84e |
---|---|
600 { | 600 { |
601 #if defined(UNIX) | 601 #if defined(UNIX) |
602 # ifdef HAVE_FSYNC | 602 # ifdef HAVE_FSYNC |
603 /* | 603 /* |
604 * most Unixes have the very useful fsync() function, just what we need. | 604 * most Unixes have the very useful fsync() function, just what we need. |
605 * However, with OS/2 and EMX it is also available, but there are | |
606 * reports of bad problems with it (a bug in HPFS.IFS). | |
607 * So we disable use of it here in case someone tries to be smart | |
608 * and changes os_os2_cfg.h... (even though there is no __EMX__ test | |
609 * in the #if, as __EMX__ does not have sync(); we hope for a timely | |
610 * sync from the system itself). | |
611 */ | 605 */ |
612 # if defined(__EMX__) | |
613 error "Don't use fsync with EMX! Read emxdoc.doc or emxfix01.doc for info." | |
614 # endif | |
615 if (STRCMP(p_sws, "fsync") == 0) | 606 if (STRCMP(p_sws, "fsync") == 0) |
616 { | 607 { |
617 if (fsync(mfp->mf_fd)) | 608 if (fsync(mfp->mf_fd)) |
618 status = FAIL; | 609 status = FAIL; |
619 } | 610 } |