Bug 417037 - mozStorage chokes on databases over AFP

This patch adds the SQLITE_ENABLE_LOCKING_STYLE=1 on the macintosh platform
only.  This will enable Apple-contributed code in SQLite that does file locking that works on AFP (Apple File Protocol), as well as some additional network
filesystems that the platform supports.
r=bsmedberg
This commit is contained in:
Shawn Wilsher 2008-10-24 18:45:14 -04:00
Родитель 3e774dc277
Коммит 39009cfbf7
1 изменённых файлов: 11 добавлений и 1 удалений

Просмотреть файл

@ -91,7 +91,17 @@ CSRCS = \
# don't have to vacuum to make sure the data is not visible in the file.
# -DSQLITE_ENABLE_FTS3=1 enables the full-text index module.
# -DSQLITE_CORE=1 statically links that module into the SQLite library.
DEFINES = -DSQLITE_SECURE_DELETE=1 -DTHREADSAFE=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_FTS3=1
DEFINES = \
-DSQLITE_SECURE_DELETE=1 \
-DTHREADSAFE=1 \
-DSQLITE_CORE=1 \
-DSQLITE_ENABLE_FTS3=1 \
$(NULL)
# -DSQLITE_ENABLE_LOCKING_STYLE=1 to help with AFP folders
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
DEFINES += -DSQLITE_ENABLE_LOCKING_STYLE=1
endif
ifeq ($(OS_ARCH),OS2)
ifdef MOZ_OS2_HIGH_MEMORY