From 8358302ded4a34a0140e88284a34c0585c27a36f Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 13 Dec 2002 05:50:18 +0000
Subject: [PATCH] This patch fixes minor bugs in dictionary generator in
 contrib/tsearch (contrib/tsearch/makedict/makedict.pl)

[ Backpatched to 7.3.]

Teodor Sigaev
---
 contrib/tsearch/makedict/makedict.pl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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;
-- 
GitLab