Commit e14974c1 authored by Michael Schumacher's avatar Michael Schumacher

Define fsync to _commit on the Windows platform

parent b5740179
......@@ -399,6 +399,11 @@ CFLAGS="$CFLAGS $MMX_EXTRA_CFLAGS $SSE_EXTRA_CFLAGS"
########################
GOBJECT_INTROSPECTION_CHECK([0.6.7])
########################
# Check for fsync
########################
AC_CHECK_FUNCS(fsync)
###############################
# Checks for required libraries
###############################
......
......@@ -38,6 +38,14 @@
//#include "gegl-types-internal.h"
#ifndef HAVE_FSYNC
#ifdef G_OS_WIN32
#define fsync _commit
#endif
#endif
struct _GeglTileBackendFile
{
GeglTileBackend parent_instance;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment