In the current cvs, there is a problem compiling the threadsafe code (at least when threads override each other). The OsFile structure defined in os_unix.h depends on the definition of THREADSAFE which is not included in the normal compilation flags (for example, for pager.o). I made the following change to fix the problem:

Index: Makefile.in
===================================================================
RCS file: /sqlite/sqlite/Makefile.in,v
retrieving revision 1.127
diff -r1.127 Makefile.in
103c103
< LTCOMPILE = $(LIBTOOL) --mode=compile $(TCC)
---
> LTCOMPILE = $(LIBTOOL) --mode=compile $(TCC) $(THREADSAFE)
320c320
<       $(LTCOMPILE) $(THREADSAFE) -c $(TOP)/src/os_unix.c
---
>       $(LTCOMPILE) -c $(TOP)/src/os_unix.c
323c323
<       $(LTCOMPILE) $(THREADSAFE) -c $(TOP)/src/os_win.c
---
>       $(LTCOMPILE) -c $(TOP)/src/os_win.c

Cheers,
Chris.

Reply via email to