Expedite: Do not call sync() if unavailable on the system (replaces #ifdef WIN32)
authorkakaroto <kakaroto@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 18 Sep 2011 21:57:24 +0000 (21:57 +0000)
committerkakaroto <kakaroto@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 18 Sep 2011 21:57:24 +0000 (21:57 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/expedite@63464 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/bin/ui.c

index e5dc838..fb2d74a 100644 (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
index 9d912ad..3dd05a5 100644 (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();