--- drivers/pgsql/dbd_pgsql.c.orig	2006-09-21 15:44:13.000000000 -0400
+++ drivers/pgsql/dbd_pgsql.c	2009-04-21 21:41:41.000000000 -0400
@@ -103,7 +103,7 @@
 
 /* this function is available through the PostgreSQL client library, but it
    is not declared in any of their headers. I hope this won't break anything */
-char *pg_encoding_to_char(int encoding_id);
+const char *pg_encoding_to_char(int encoding_id);
 
 
 /* real code starts here */
@@ -247,7 +247,7 @@
 }
 
 const char *dbd_get_encoding(dbi_conn_t *conn){
-	char* my_enc;
+	const char* my_enc;
 	int n_encoding;
 	const char* encodingopt;
 	char* sql_cmd;
