File: 01_declare_pg_encoding_to_char.dpatch

package info (click to toggle)
libpgsql-ruby 0.7.1-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 192 kB
  • ctags: 231
  • sloc: ruby: 1,359; ansic: 1,260; makefile: 55; sh: 9
file content (19 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_declare_pg_encoding_to_char.dpatch by Aurélien GÉRÔME <ag@roxor.cx>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Declare pg_encoding_to_char() to avoid an implicit declaration.

@DPATCH@
diff -urNad libpgsql-ruby-0.7.1~/postgres.c libpgsql-ruby-0.7.1/postgres.c
--- libpgsql-ruby-0.7.1~/postgres.c	2006-10-16 01:38:23.000000000 +0200
+++ libpgsql-ruby-0.7.1/postgres.c	2006-10-16 01:38:38.000000000 +0200
@@ -25,6 +25,8 @@
 #define pg_encoding_to_char(x) "SQL_ASCII"
 #endif
 
+extern const char *pg_encoding_to_char(int encoding); /* Taken from mb/pg_wchar.h. */
+
 static VALUE rb_cPGconn;
 static VALUE rb_cPGresult;