Files
harbour-core/harbour/contrib/3rd/sqlite3/sqlite3.dif
Viktor Szakats a9e9453769 2011-02-03 01:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbssl/hbssl.hbp
  * contrib/hbssl/hbssl.hbm
  * contrib/hbssl/ssl.c
    ! Implemented special OpenSSL requirement when using OpenSSL
      as a .dll under win, for version 0.9.8 and above.
    ! http://www.openssl.org/support/faq.html#PROG2
    ; NOTE: SSL_INIT() must be called by the user application
            for this to work.

  * contrib/hbssl/tests/bio.prg
  * contrib/hbssl/tests/encode.prg
  * contrib/hbssl/tests/digest.prg
  * contrib/hbssl/tests/crypt.prg
  * contrib/hbssl/tests/pem.prg
    + Call SSL_INIT()

  * contrib/hbssl/pem.c
    ! PEM_READ_BIO_*() functions fixed to not require a second
      parameter (a password callback or string).

  * contrib/3rd/sqlite3/sqlite3.c
  + contrib/3rd/sqlite3/sqlite3.dif
  * contrib/3rd/sqlite3/sqlite3.hbp
    ! make sqlite3 work in minix.
      Patch by Tamas.
    ; NOTE: I'd be good to submit this mod upstream. It might 
            be nasty to rediff this code. [vszakats]
2011-02-04 00:45:00 +00:00

69 lines
2.2 KiB
Plaintext

diff -urN sqlite3.orig/sqlite3.c sqlite3/sqlite3.c
--- sqlite3.orig/sqlite3.c 2011-02-04 00:43:05.702914036 +0100
+++ sqlite3/sqlite3.c 2011-02-04 00:43:05.772913453 +0100
@@ -23526,7 +23526,9 @@
case ENODEV:
case ENXIO:
case ENOENT:
+#if defined( ESTALE )
case ESTALE:
+#endif
case ENOSYS:
/* these should force the client to close the file and reconnect */
@@ -24681,7 +24683,7 @@
*/
if( pFile->eFileLock > NO_LOCK ){
pFile->eFileLock = eFileLock;
-#if !OS_VXWORKS
+#if !OS_VXWORKS && !__minix
/* Always update the timestamp on the old file */
utimes(zLockFile, NULL);
#endif
@@ -26150,7 +26152,11 @@
** is the same technique used by glibc to implement posix_fallocate()
** on systems that do not have a real fallocate() system call.
*/
+#if __minix
+ int nBlk = 4096; /* MFS default; good enough for now */
+#else
int nBlk = buf.st_blksize; /* File-system block size */
+#endif
i64 iWrite; /* Next offset to write to */
int nWrite; /* Return value from seekAndWrite() */
diff -urN sqlite3.orig/sqlite3.c sqlite3/sqlite3.c
--- sqlite3.orig/sqlite3.c 2011-02-04 00:43:05.702914036 +0100
+++ sqlite3/sqlite3.c 2011-02-04 00:43:05.772913453 +0100
@@ -23526,7 +23526,9 @@
case ENODEV:
case ENXIO:
case ENOENT:
+#if defined( ESTALE )
case ESTALE:
+#endif
case ENOSYS:
/* these should force the client to close the file and reconnect */
@@ -24681,7 +24683,7 @@
*/
if( pFile->eFileLock > NO_LOCK ){
pFile->eFileLock = eFileLock;
-#if !OS_VXWORKS
+#if !OS_VXWORKS && !__minix
/* Always update the timestamp on the old file */
utimes(zLockFile, NULL);
#endif
@@ -26150,7 +26152,11 @@
** is the same technique used by glibc to implement posix_fallocate()
** on systems that do not have a real fallocate() system call.
*/
+#if __minix
+ int nBlk = 4096; /* MFS default; good enough for now */
+#else
int nBlk = buf.st_blksize; /* File-system block size */
+#endif
i64 iWrite; /* Next offset to write to */
int nWrite; /* Return value from seekAndWrite() */