# HG changeset patch # User Daniel Atallah # Date 1194572391 0 # Node ID 6e0c99e134c28e2dcd578c048867e5c9c237a405 # Parent 726f91be55ed7a9eeae069051e511de3264b54c0 Fix the win32 build for the file synchronization changes. Hopefully this will fix some of the occasional issues that people have had on Windows with their files getting corrupted on power failure or something. diff -r 726f91be55ed -r 6e0c99e134c2 config.h.mingw --- a/config.h.mingw Thu Nov 08 19:50:22 2007 +0000 +++ b/config.h.mingw Fri Nov 09 01:39:51 2007 +0000 @@ -410,3 +410,6 @@ */ #define HAVE_VSNPRINTF 1 +#define HAVE_FILENO 1 + + diff -r 726f91be55ed -r 6e0c99e134c2 libpurple/win32/libc_interface.h --- a/libpurple/win32/libc_interface.h Thu Nov 08 19:50:22 2007 +0000 +++ b/libpurple/win32/libc_interface.h Fri Nov 09 01:39:51 2007 +0000 @@ -121,6 +121,8 @@ #define gethostname( name, size ) \ wpurple_gethostname( name, size ) +#define fsync(fd) _commit(fd) + /* sys/time.h */ #define gettimeofday( timeval, timezone ) \ wpurple_gettimeofday( timeval, timezone )