diff src/s/ms-w32.h @ 24675:45917c73cff6

(HAVE_FSYNC): New macro. (fsync): Map to _commit. (ftruncate): Map to _chsize.
author Andrew Innes <andrewi@gnu.org>
date Sun, 02 May 1999 10:36:23 +0000
parents b2aa39f6d923
children 8844e3f055f2
line wrap: on
line diff
--- a/src/s/ms-w32.h	Sun May 02 10:34:21 1999 +0000
+++ b/src/s/ms-w32.h	Sun May 02 10:36:23 1999 +0000
@@ -237,6 +237,7 @@
 #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 @@
 #define fileno	  _fileno
 #define flushall  _flushall
 #define fputchar  _fputchar
+#define fsync	  _commit
+#define ftruncate _chsize
 #define getw	  _getw
 #define getpid    _getpid
 #define isatty    _isatty