util.c error in last release

Andrea Visinoni andrea at puntualmenteinritardo.com
Thu Nov 8 18:51:06 EST 2007

Ethan Blanton ha scritto:
> Andrea Visinoni spake unto us the following wisdom:
>> util.c: In function ‘purple_util_write_data_to_file_absolute’:
>> util.c:2632: error: implicit declaration of function ‘fsync’
>> util.c:2632: warning: nested extern declaration of ‘fsync’
>> even if in util.h i try to include <unistd.h>
> If you're going to run from monotone and submit bug reports without
> patches (which we strongly discourage), please at *least* tell us what
> platform you're on, and whether or not it has fsync() at all.
> Ethan

Sorry, i'm compiling for win32 under linux.
I've solved the problem with this:

--- libpurple/util.h    b442b1700aeece6f1f6678fde481ea534404557d
+++ libpurple/util.h    233d401d048bfe282ba11db171b377ff82507812
@@ -31,6 +31,8 @@

  #include <stdio.h>

+#define fsync _commit
  #include "account.h"
  #include "xmlnode.h"
  #include "notify.h"

More information about the Devel mailing list