Small. Fast. Reliable.
Choose any three.
*** 26,42 ****
  
  ====
  
  libsqlite.a and sqlite.exe may be made for djgpp in a similar way as above. it compiles and works out of the box, with the following limitations:
  
! 1. temporary filenames are not removed upon close.
  
- 2. files created by sqlite automatically will be correctly created only if lfn is enabled. otherwise, the database will be read-only. (i couldn't create tables, but i didn't try to insert records in existent ones).
  
- the diff i'm appending is fixing all the above problems, and makes sqlite function very well on djgpp. beneath there is another djgpp solution, which i think has been already applied.
  
! my patch applies to sqlite version 2.8.6, and i didn't check any other version.
  
- to avoid overload of this page, i have attached the diff to a development ticket: http://www.sqlite.org/cvstrac/tktview?tn=524 . it will also do no harm to incorporate it in the main sqlite distribution.
  
  To get it compiling on DJGPP (DOS) you need to patch src/os.c with the following (unified diff):
  
--- 26,54 ----
  
  ====
  
+ DJGPP (DOS)
+ 
  libsqlite.a and sqlite.exe may be made for djgpp in a similar way as above. it compiles and works out of the box, with the following limitations:
  
! 1. temporary files are not removed upon database close (journal file).
! 
! 2. files created by sqlite automatically will be correctly created only if lfn is enabled. otherwise, lacking the journal file, the database will be open read-only.
! 
! the diff i'm appending are fixing both problems, and make sqlite work very well on djgpp.
! 
! to avoid overload of this page, i have attached patches to sqlite development tickets. each patch applies for a certain sqlite version, as follows:
! 
! for sqlite 2.8.6: diff attached at http://www.sqlite.org/cvstrac/tktview?tn=524
! for sqlite 2.8.11: i will update location later.
! for sqlite 2.8.13: diff attached at http://www.sqlite.org/cvstrac/tktview?tn=717
! 
! it will also do no harm to incorporate it in the main sqlite distribution.
! 
  
  
  
! beneath there is another djgpp listing, the functionality of which has been already applied in mainstream sqlite, in a macro that ignores fnctl calls. in my opinion, it is not needed to apply anymore.
  
  
  To get it compiling on DJGPP (DOS) you need to patch src/os.c with the following (unified diff):