aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-12-13 05:50:41 +0000
committerBruce Momjian <bruce@momjian.us>2002-12-13 05:50:41 +0000
commit8fba8caba6b521713d17b80174154edec1bae859 (patch)
treeb9f89229c1920b6d3c1984c2a19eca0dc680638f
parent1c432d60d72a202689d9aba0da7092a20b296f86 (diff)
downloadpostgresql-8fba8caba6b521713d17b80174154edec1bae859.tar.gz
postgresql-8fba8caba6b521713d17b80174154edec1bae859.zip
This patch fixes minor bugs in dictionary generator in contrib/tsearch
(contrib/tsearch/makedict/makedict.pl) [ Backpatched to 7.3.] Teodor Sigaev
-rwxr-xr-xcontrib/tsearch/makedict/makedict.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/tsearch/makedict/makedict.pl b/contrib/tsearch/makedict/makedict.pl
index 65c8af3bd2b..34e77cb95b2 100755
--- a/contrib/tsearch/makedict/makedict.pl
+++ b/contrib/tsearch/makedict/makedict.pl
@@ -4,7 +4,7 @@ use Getopt::Std;
use locale;
my %opt;
-getopts('l:he:s:ap:om:f', \%opt);
+getopts('l:he:s:ap:o:m:f', \%opt);
if ( $opt{h} || ! ($opt{e}||$opt{s}) || !$opt{l} ) {
print<<EOT;
@@ -94,6 +94,8 @@ print {$fh} <<EOT;
*/
#ifdef DICT_BODY
+#include <ctype.h>
+
typedef struct {
uint8 val;
uint8 flag;