]> git.eshelyaron.com Git - emacs.git/commitdiff
(HAVE_FSYNC): New macro.
authorAndrew Innes <andrewi@gnu.org>
Sun, 2 May 1999 10:36:23 +0000 (10:36 +0000)
committerAndrew Innes <andrewi@gnu.org>
Sun, 2 May 1999 10:36:23 +0000 (10:36 +0000)
(fsync): Map to _commit.
(ftruncate): Map to _chsize.

src/s/ms-w32.h

index f3db0c54275eb41a79d08ab0a972ac0c80f384b5..bbbc33d4a0d83c392f2923db0204efdd26cf9c0e 100644 (file)
@@ -237,6 +237,7 @@ Boston, MA 02111-1307, USA.  */
 #define HAVE_DUP2 1
 #define HAVE_RENAME 1
 #define HAVE_CLOSEDIR 1
+#define HAVE_FSYNC 1           /* fsync is called _commit in MSVC.  */
 
 #undef  TM_IN_SYS_TIME
 #undef  HAVE_TM_ZONE
@@ -352,6 +353,8 @@ Boston, MA 02111-1307, USA.  */
 #define fileno   _fileno
 #define flushall  _flushall
 #define fputchar  _fputchar
+#define fsync    _commit
+#define ftruncate _chsize
 #define getw     _getw
 #define getpid    _getpid
 #define isatty    _isatty