components/perl_modules/dbd-sqlite/patches/03_do_not_use_local_header.patch
changeset 5927 0b2f72b7196c
equal deleted inserted replaced
5926:ce9323f2bb9c 5927:0b2f72b7196c
       
     1 Filed at https://rt.cpan.org/Public/Bug/Display.html?id=114138
       
     2 
       
     3 --- DBD-SQLite-1.50/Makefile.PL	2016-05-02 13:32:35.562004677 -0700
       
     4 +++ DBD-SQLite-1.50/Makefile.PL	2016-05-02 13:31:31.215124807 -0700
       
     5 @@ -170,6 +170,7 @@ if ( 0 ) {
       
     6  				while ( defined($_ = <$fh>) ) {
       
     7  					if (/\#define\s+SQLITE_VERSION_NUMBER\s+(\d+)/) {
       
     8  						$version = $1;
       
     9 +						$sqlite_inc = File::Spec->catdir( '', @$dir );
       
    10  						last;
       
    11  					}
       
    12  				}
       
    13 @@ -216,7 +217,7 @@ my @CC_INC = (
       
    14  	'-I$(DBI_INSTARCH_DIR)',
       
    15  );
       
    16  if ( $sqlite_inc ) {
       
    17 -	push @CC_INC, "-I$sqlite_inc";
       
    18 +	unshift @CC_INC, "-I$sqlite_inc";
       
    19  }
       
    20  
       
    21  my @CC_DEFINE = (
       
    22 --- DBD-SQLite-1.50/sqlite3ext.h	2016-05-02 13:40:28.734661242 -0700
       
    23 +++ DBD-SQLite-1.50/sqlite3ext.h	2016-05-02 13:39:16.724889276 -0700
       
    24 @@ -17,7 +17,7 @@
       
    25  */
       
    26  #ifndef _SQLITE3EXT_H_
       
    27  #define _SQLITE3EXT_H_
       
    28 -#include "sqlite3.h"
       
    29 +#include <sqlite3.h>
       
    30  
       
    31  typedef struct sqlite3_api_routines sqlite3_api_routines;
       
    32  
       
    33 --- DBD-SQLite-1.50/dbdimp.h	2016-05-02 13:40:28.956772954 -0700
       
    34 +++ DBD-SQLite-1.50/dbdimp.h	2016-05-02 13:39:23.563370124 -0700
       
    35 @@ -3,7 +3,7 @@
       
    36  #define _DBDIMP_H   1
       
    37  
       
    38  #include "SQLiteXS.h"
       
    39 -#include "sqlite3.h"
       
    40 +#include <sqlite3.h>
       
    41  
       
    42  #define MY_CXT_KEY "DBD::SQLite::_guts" XS_VERSION
       
    43  
       
    44 --- DBD-SQLite-1.50/SQLiteXS.h	2016-05-02 13:40:29.181387425 -0700
       
    45 +++ DBD-SQLite-1.50/SQLiteXS.h	2016-05-02 13:39:36.956291908 -0700
       
    46 @@ -18,7 +18,7 @@
       
    47  #include "dbivport.h"
       
    48  #include <dbd_xsh.h>
       
    49  
       
    50 -#include "sqlite3.h"
       
    51 +#include <sqlite3.h>
       
    52  #include "fts3_tokenizer.h"
       
    53  
       
    54  #endif