Expedite: Do not call sync() if unavailable on the system (replaces #ifdef WIN32)

SVN revision: 63464
This commit is contained in:
Youness Alaoui 2011-09-18 21:57:24 +00:00
parent e277ec0fbf
commit da98dde899
2 changed files with 4 additions and 1 deletions

View File

@ -110,6 +110,7 @@ AC_PROG_CC
LT_PROG_RC
### Checks for libraries
# Evil library for compilation on Windows
@ -230,6 +231,8 @@ AC_SUBST(lt_enable_auto_import)
### Checks for library functions
AC_CHECK_FUNCS([sync])
AC_OUTPUT([
Makefile

View File

@ -611,7 +611,7 @@ _ui_setup(void)
#undef UI
_ui_menu_item_add("exit.png", "Exit", _ui_exit);
#ifndef _WIN32
#ifdef HAVE_SYNC
/* make sure disk io isn't going to turn up unexpectedly */
sync();
sync();