This patch fixes minor bugs in dictionary generator in contrib/tsearch
authorBruce Momjian
Fri, 13 Dec 2002 05:50:18 +0000 (05:50 +0000)
committerBruce Momjian
Fri, 13 Dec 2002 05:50:18 +0000 (05:50 +0000)
(contrib/tsearch/makedict/makedict.pl)

[ Backpatched to 7.3.]

Teodor Sigaev

contrib/tsearch/makedict/makedict.pl

index 65c8af3bd2b2eb194ee240403527c03b9426e256..34e77cb95b2148ed4155ed94bd8286a976f02e08 100755 (executable)
@@ -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<
@@ -94,6 +94,8 @@ print {$fh} <
  */
 
 #ifdef DICT_BODY
+#include 
+
 typedef struct {
    uint8   val;
    uint8   flag;