diff options
author | mat <mat@FreeBSD.org> | 2005-01-08 10:42:27 +0000 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2005-01-08 10:42:27 +0000 |
commit | e667e45404a4b7eb2159f7fcfd25d0ce78426a9f (patch) | |
tree | ca258698ceb05551b239ebe559156226baf00878 /databases | |
parent | ef6206ed78ccc9a0707e8c408322c5dcc63518f5 (diff) | |
download | FreeBSD-ports-e667e45404a4b7eb2159f7fcfd25d0ce78426a9f.zip FreeBSD-ports-e667e45404a4b7eb2159f7fcfd25d0ce78426a9f.tar.gz |
Add a fix for 64 bit arch
Submitted by: Rink Springer <rink@stack.nl>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/p5-DBD-Pg-13/Makefile | 1 | ||||
-rw-r--r-- | databases/p5-DBD-Pg-13/files/patch-dbdimp.c | 14 | ||||
-rw-r--r-- | databases/p5-DBD-Pg-13/files/patch-quote.c | 78 | ||||
-rw-r--r-- | databases/p5-DBD-Pg/Makefile | 1 | ||||
-rw-r--r-- | databases/p5-DBD-Pg/files/patch-dbdimp.c | 14 | ||||
-rw-r--r-- | databases/p5-DBD-Pg/files/patch-quote.c | 78 |
6 files changed, 186 insertions, 0 deletions
diff --git a/databases/p5-DBD-Pg-13/Makefile b/databases/p5-DBD-Pg-13/Makefile index cbe0533..5bb6ca8 100644 --- a/databases/p5-DBD-Pg-13/Makefile +++ b/databases/p5-DBD-Pg-13/Makefile @@ -7,6 +7,7 @@ PORTNAME= DBD-Pg PORTVERSION= 1.32 +PORTREVISION= 1 CATEGORIES= databases perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= DBD diff --git a/databases/p5-DBD-Pg-13/files/patch-dbdimp.c b/databases/p5-DBD-Pg-13/files/patch-dbdimp.c new file mode 100644 index 0000000..5340bcc --- /dev/null +++ b/databases/p5-DBD-Pg-13/files/patch-dbdimp.c @@ -0,0 +1,14 @@ +diff -ru dbdimp.c~ dbdimp.c +--- dbdimp.c~ Sun Jan 2 20:01:43 2005 ++++ dbdimp.c Sun Jan 2 20:06:16 2005 +@@ -986,7 +986,9 @@ + int num_fields; + char *value; + char *p; +- int i, pg_type, value_len, chopblanks, len; ++ int i, pg_type, chopblanks; ++ size_t value_len; ++ STRLEN len; + AV *av; + D_imp_dbh_from_sth; + diff --git a/databases/p5-DBD-Pg-13/files/patch-quote.c b/databases/p5-DBD-Pg-13/files/patch-quote.c new file mode 100644 index 0000000..9ce19c0 --- /dev/null +++ b/databases/p5-DBD-Pg-13/files/patch-quote.c @@ -0,0 +1,78 @@ +diff -ru quote.c~ quote.c +--- quote.c~ Sun Jan 2 20:01:43 2005 ++++ quote.c Sun Jan 2 20:04:39 2005 +@@ -9,7 +9,7 @@ + { + const char *source = from; + char *target = to; +- unsigned int remaining = length; ++ unsigned size_t remaining = length; + + while (remaining > 0) + { +@@ -146,9 +146,9 @@ + unsigned char * + PQunescapeBytea2(const unsigned char *strtext, size_t *retbuflen) + { +- size_t strtextlen, buflen; ++ size_t strtextlen, buflen, i, j; + unsigned char *buffer, *tmpbuf; +- int i, j, byte; ++ int byte; + + if (strtext == NULL) { + return NULL; +@@ -393,7 +393,7 @@ + { + char *result; + char *dest; +- int max_len = 0, i; ++ size_t max_len = 0, i; + + /* We are going to retun a quote_bytea() for backwards compat but + we warn first */ +@@ -483,7 +483,7 @@ + void + dequote_char(string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + /* TODO: chop_blanks if requested */ + *retlen = strlen(string); +@@ -493,7 +493,7 @@ + void + dequote_varchar (string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + *retlen = strlen(string); + } +@@ -503,7 +503,7 @@ + void + dequote_bytea(string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + char *s, *p; + int c1,c2,c3; +@@ -542,7 +542,7 @@ + void + dequote_sql_binary (string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + /* We are going to retun a dequote_bytea(), JIC */ + warn("Use of SQL_BINARY invalid in dequote()"); +@@ -556,7 +556,7 @@ + void + dequote_bool (string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + switch(*string){ + case 'f': *string = '0'; break; diff --git a/databases/p5-DBD-Pg/Makefile b/databases/p5-DBD-Pg/Makefile index cbe0533..5bb6ca8 100644 --- a/databases/p5-DBD-Pg/Makefile +++ b/databases/p5-DBD-Pg/Makefile @@ -7,6 +7,7 @@ PORTNAME= DBD-Pg PORTVERSION= 1.32 +PORTREVISION= 1 CATEGORIES= databases perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= DBD diff --git a/databases/p5-DBD-Pg/files/patch-dbdimp.c b/databases/p5-DBD-Pg/files/patch-dbdimp.c new file mode 100644 index 0000000..5340bcc --- /dev/null +++ b/databases/p5-DBD-Pg/files/patch-dbdimp.c @@ -0,0 +1,14 @@ +diff -ru dbdimp.c~ dbdimp.c +--- dbdimp.c~ Sun Jan 2 20:01:43 2005 ++++ dbdimp.c Sun Jan 2 20:06:16 2005 +@@ -986,7 +986,9 @@ + int num_fields; + char *value; + char *p; +- int i, pg_type, value_len, chopblanks, len; ++ int i, pg_type, chopblanks; ++ size_t value_len; ++ STRLEN len; + AV *av; + D_imp_dbh_from_sth; + diff --git a/databases/p5-DBD-Pg/files/patch-quote.c b/databases/p5-DBD-Pg/files/patch-quote.c new file mode 100644 index 0000000..9ce19c0 --- /dev/null +++ b/databases/p5-DBD-Pg/files/patch-quote.c @@ -0,0 +1,78 @@ +diff -ru quote.c~ quote.c +--- quote.c~ Sun Jan 2 20:01:43 2005 ++++ quote.c Sun Jan 2 20:04:39 2005 +@@ -9,7 +9,7 @@ + { + const char *source = from; + char *target = to; +- unsigned int remaining = length; ++ unsigned size_t remaining = length; + + while (remaining > 0) + { +@@ -146,9 +146,9 @@ + unsigned char * + PQunescapeBytea2(const unsigned char *strtext, size_t *retbuflen) + { +- size_t strtextlen, buflen; ++ size_t strtextlen, buflen, i, j; + unsigned char *buffer, *tmpbuf; +- int i, j, byte; ++ int byte; + + if (strtext == NULL) { + return NULL; +@@ -393,7 +393,7 @@ + { + char *result; + char *dest; +- int max_len = 0, i; ++ size_t max_len = 0, i; + + /* We are going to retun a quote_bytea() for backwards compat but + we warn first */ +@@ -483,7 +483,7 @@ + void + dequote_char(string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + /* TODO: chop_blanks if requested */ + *retlen = strlen(string); +@@ -493,7 +493,7 @@ + void + dequote_varchar (string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + *retlen = strlen(string); + } +@@ -503,7 +503,7 @@ + void + dequote_bytea(string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + char *s, *p; + int c1,c2,c3; +@@ -542,7 +542,7 @@ + void + dequote_sql_binary (string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + /* We are going to retun a dequote_bytea(), JIC */ + warn("Use of SQL_BINARY invalid in dequote()"); +@@ -556,7 +556,7 @@ + void + dequote_bool (string, retlen) + char *string; +- int *retlen; ++ size_t *retlen; + { + switch(*string){ + case 'f': *string = '0'; break; |