forked from enlightenment/expedite
Expedite: Do not call sync() if unavailable on the system (replaces #ifdef WIN32)
SVN revision: 63464
This commit is contained in:
parent
e277ec0fbf
commit
da98dde899
|
@ -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…
Reference in New Issue