Compile file if using readline-4.2 (PostGres 7.1)

PostgreSQL Bugs List <pgsql-bugs@postgresql.org>

From: pgsql-bugs@postgresql.org
To: pgsql-bugs@postgresql.org
Date: 2001-04-23T10:37:24Z
Lists: pgsql-bugs
Laurent Faillie (l_faillie@yahoo.com) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
Compile file if using readline-4.2 (PostGres 7.1)

Long Description
Hello All,

psql will not compile if using readline-4.2 because some functions has been renamed.

Workaround :

I add following define in the beginning of tab-complete.c

#define completion_matches	rl_completion_matches
#define	filename_completion_function	rl_filename_completion_function

Now I have some "incompatible pointer" warning but it runs ok. (no time to trying to correct these warning :-( )

Bye

Laurent

Sample Code


No file was uploaded with this report