It seems that IBM's AIX is finicky with large file support, at least on the
system I'm working on. Out of the box, large file support will be disabled
for aix when compiling the sqlite3 amalgamation.

I had to make the following changes in sqlite3.c:

#ifndef SQLITE_DISABLE_LFS
# define _LARGE_FILE       1
//the define for AIX is plural. Go figure.


# define _LARGE_FILES      1
# ifndef _FILE_OFFSET_BITS
#   define _FILE_OFFSET_BITS 64
# endif
# define _LARGEFILE_SOURCE 1
#endif

Seems the define _LARGE_FILE should be plural for aix.

My aix system: AIX aix 3 5 0003D44AD300

Thanks!

- Nasron
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to