[Csync2] sqlite3 and _FILE_OFFSET_BITS=64

Art -kwaak- van Breemen ard+csync2 at telegraafnet.nl
Wed Jun 18 14:45:06 CEST 2008


http://217.196.41.9/~ard/csync2/00-csync2-deb-sqlite3.diff

There is an extra change to csync2.c to make sure that sqlite3
gets a .db3 extension and sqlite just .db .

By default sqlite3 will be compiled unless --disable-sqlite3 is
given during ./configure...

Patches in db.c :
I've made some macro's to keep the number of #if defined as low
as possible:
SQL_EXEC -> either sqlite3_exec or sqlite_exec
IFESQL3(a,b) If sqlite3 then use code a, else use code b.

Things to look at: since it was the first time I've ever
modified an .ac file, somebody may try to fix it the right way.
It works for me(R) ;-).

Patches in csync.h:
I've made as few changes possible, so the csync_db_next has
bogus arguments.

ard at c32791:~$ ls -al /var/lib/csync2/
total 152118
drwxr-xr-x  2 root root      112 2008-06-18 14:35 .
drwxr-xr-x 66 root root     1712 2008-06-01 06:52 ..
-rw-r--r--  1 root root 78171136 2008-06-18 14:34 c32791.db
-rw-r--r--  1 root root 77441024 2008-06-18 14:35 c32791.db3

So, please test it.

(Hmmm, forgot to fix the debian-build-depends)


More information about the Csync2 mailing list