On Sat, 16 Jun 2001, Peter Eisentraut wrote:
> Alex Pilosov writes:
>
> > If USE_READLINE exists, but HAVE_RL_FILENAME_COMPLETION_FUNCTION does not,
> > -current build breaks:
> > gcc -O2 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
> > -I../../../src/interfaces/libpq -I../../../src/include -c tab-complete.c
> > -o tab-complete.o
> > tab-complete.c: In function `psql_completion':
> > tab-complete.c:754: `filename_completion_function' undeclared (first use
> > in this function)
> > tab-complete.c:754: (Each undeclared identifier is reported only once
> > tab-complete.c:754: for each function it appears in.)
> >
> > I am not sure what should it be defined as when RL_FILENAME_COMPLETION is
> > not available...?
>
> It should be in the readline.h header file. Is this yet another case of a
> broken OpenBSD readline installation?
Yeah, sorry, my fault. OpenBSD 2.8 ships with a broken readline (dated
1996). 2.9 has a recent GNU readline. I don't think its worth supporting
2.8 readline either, but I forgot to check the archives.
-alex