summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rw-r--r--src/bin/ui.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e5dc838..fb2d74a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -110,6 +110,7 @@ AC_PROG_CC
110LT_PROG_RC 110LT_PROG_RC
111 111
112 112
113
113### Checks for libraries 114### Checks for libraries
114 115
115# Evil library for compilation on Windows 116# Evil library for compilation on Windows
@@ -230,6 +231,8 @@ AC_SUBST(lt_enable_auto_import)
230 231
231### Checks for library functions 232### Checks for library functions
232 233
234AC_CHECK_FUNCS([sync])
235
233 236
234AC_OUTPUT([ 237AC_OUTPUT([
235Makefile 238Makefile
diff --git a/src/bin/ui.c b/src/bin/ui.c
index 9d912ad..3dd05a5 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -611,7 +611,7 @@ _ui_setup(void)
611#undef UI 611#undef UI
612 _ui_menu_item_add("exit.png", "Exit", _ui_exit); 612 _ui_menu_item_add("exit.png", "Exit", _ui_exit);
613 613
614#ifndef _WIN32 614#ifdef HAVE_SYNC
615 /* make sure disk io isn't going to turn up unexpectedly */ 615 /* make sure disk io isn't going to turn up unexpectedly */
616 sync(); 616 sync();
617 sync(); 617 sync();