sqlite: upgrade to SQLite 3.15.1

Downloaded from https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip

    $ sha256sum sqlite-amalgamation-3150000.zip
    7143be3e0b48aa687858ab4767b7d4a79a47de26ca159c6fab6e87b6c7f10fe4  sqlite-amalgamation-3150100.zip

dist/orig contains the stock sqlite3 code, as packaged in the ZIP file above.

dist contains a copy of dist/orig, but with the Android.patch file applied.
Please see Android.patch for a list of differences between stock and
Android.

The Android specific patch applied cleanly and was regenerated.

This minor release contains critical bug fixes, some of them
were classified as "immediate".

More details about the release is avaliable here: https://sqlite.org/releaselog/3_15_1.html

Change-Id: Ib9f7f419ec64c75865c41e0c04db19835f9ed571
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
diff --git a/dist/Android.patch b/dist/Android.patch
index d314939..e4ed6a4 100644
--- a/dist/Android.patch
+++ b/dist/Android.patch
@@ -1,6 +1,6 @@
 diff -r -u -d orig/shell.c ./shell.c
---- orig/shell.c	2016-10-14 16:15:24.955224267 +0200
-+++ ./shell.c	2016-10-14 16:15:25.071222519 +0200
+--- orig/shell.c	2016-11-04 19:21:18.000000000 +0100
++++ ./shell.c	2016-11-05 15:37:30.041914978 +0100
 @@ -52,6 +52,12 @@
  #endif
  #include <ctype.h>
@@ -38,9 +38,9 @@
  }
  
 diff -r -u -d orig/sqlite3.c ./sqlite3.c
---- orig/sqlite3.c	2016-10-14 16:15:25.063222639 +0200
-+++ ./sqlite3.c	2016-10-14 18:42:38.285079971 +0200
-@@ -33025,7 +33025,7 @@
+--- orig/sqlite3.c	2016-11-04 19:21:18.000000000 +0100
++++ ./sqlite3.c	2016-11-05 15:37:30.071914348 +0100
+@@ -33035,7 +33035,7 @@
    SimulateIOError( rc=1 );
    if( rc!=0 ){
      storeLastErrno((unixFile*)id, errno);
@@ -49,7 +49,7 @@
    }
    *pSize = buf.st_size;
  
-@@ -33061,7 +33061,7 @@
+@@ -33071,7 +33071,7 @@
      struct stat buf;              /* Used to hold return values of fstat() */
     
      if( osFstat(pFile->h, &buf) ){
@@ -58,7 +58,7 @@
      }
  
      nSize = ((nByte+pFile->szChunk-1) / pFile->szChunk) * pFile->szChunk;
-@@ -33635,7 +33635,7 @@
+@@ -33645,7 +33645,7 @@
      ** with the same permissions.
      */
      if( osFstat(pDbFd->h, &sStat) ){
@@ -67,7 +67,7 @@
        goto shm_open_err;
      }
  
-@@ -113764,7 +113764,7 @@
+@@ -113786,7 +113786,7 @@
    }
    if( pDb->pSchema->file_format>SQLITE_MAX_FILE_FORMAT ){
      sqlite3SetString(pzErrMsg, db, "unsupported file format");
@@ -76,7 +76,7 @@
      goto initone_error_out;
    }
  
-@@ -147014,13 +147014,25 @@
+@@ -147039,13 +147039,25 @@
    ** module with sqlite.
    */
    if( SQLITE_OK==rc