summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--bcc32/Makefile.sub1
-rw-r--r--configure.in1
-rw-r--r--win32/Makefile.sub1
-rw-r--r--win32/win32.h1
5 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b5c5a8dade..43afe444e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue May 13 17:58:08 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * configure.in, bcc32/Makefile.sub, win32/Makefile.sub: define
+ HAVE_FSYNC.
+
+ * win32/win32.h (fsync): define as _commit().
+
Tue May 13 14:48:07 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (error_pos): use $deferr for output instead of stderr
diff --git a/bcc32/Makefile.sub b/bcc32/Makefile.sub
index 05fbd59df1..2e7380acf2 100644
--- a/bcc32/Makefile.sub
+++ b/bcc32/Makefile.sub
@@ -232,6 +232,7 @@ config.h:
/* \#define HAVE_RANDOM 1 */
\#define HAVE_WAITPID 1
\#define HAVE_GETCWD 1
+\#define HAVE_FSYNC 1
/* \#define HAVE_TRUNCATE 1 */
\#define HAVE_CHSIZE 1
\#define HAVE_TIMES 1
diff --git a/configure.in b/configure.in
index c88467762c..08bc2e5280 100644
--- a/configure.in
+++ b/configure.in
@@ -282,6 +282,7 @@ mingw*) LIBS="-lwsock32 $LIBS"
ac_cv_header_sys_times_h=no
ac_cv_func_times=yes
ac_cv_func_waitpid=yes
+ ac_cv_func_fsync=yes
ac_cv_func_vsnprintf=yes
ac_cv_func_seekdir=yes
ac_cv_func_telldir=yes
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index b38087f979..af30debb02 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -253,6 +253,7 @@ config.h:
#define HAVE_HYPOT 1
#define HAVE_MODF 1
#define HAVE_WAITPID 1
+#define HAVE_FSYNC 1
#define HAVE_CHSIZE 1
#define HAVE_TIMES 1
#define HAVE__SETJMP 1
diff --git a/win32/win32.h b/win32/win32.h
index 48d2f1beaf..976e8f36f4 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -119,6 +119,7 @@ extern "C++" {
#endif
#define vsnprintf _vsnprintf
#define snprintf _snprintf
+#define fsync _commit
#undef stat
#define stat(path,st) rb_w32_stat(path,st)