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

SVN revision: 63464
expedite-1.1
Youness Alaoui 12 years ago
parent e277ec0fbf
commit da98dde899
  1. 3
      configure.ac
  2. 2
      src/bin/ui.c

@ -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

@ -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();

Loading…
Cancel
Save