diff options
author | Fritz Elfert <felfert@to.com> | 2000-11-11 21:54:40 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2000-11-11 21:54:40 +0000 |
commit | 98d9aeaa0113dd3aa5dda8f90d10977d6d3120ed (patch) | |
tree | d611c41b67e7b9e69d0f341b7dde17561efeaaa9 /plpftp/rlcrap.c | |
parent | eeab2fb47a7d5b97b50724289ffd5932c6147d83 (diff) | |
download | plptools-98d9aeaa0113dd3aa5dda8f90d10977d6d3120ed.tar.gz plptools-98d9aeaa0113dd3aa5dda8f90d10977d6d3120ed.tar.bz2 plptools-98d9aeaa0113dd3aa5dda8f90d10977d6d3120ed.zip |
Added workaround for broken readline.h
Diffstat (limited to 'plpftp/rlcrap.c')
-rw-r--r-- | plpftp/rlcrap.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plpftp/rlcrap.c b/plpftp/rlcrap.c new file mode 100644 index 0000000..519daf3 --- /dev/null +++ b/plpftp/rlcrap.c @@ -0,0 +1,18 @@ +/* + * Woraround for crappy readline.h which defines wrong prototypes. + */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#if HAVE_LIBREADLINE +#include <stdio.h> +#include "rlcrap.h" + +CPFunction *cmdgen_ptr; +CPFunction *fnmgen_ptr; + +void rlcrap_setpointers(CorrectFunProto cgp, CorrectFunProto fgp) { + cmdgen_ptr = cgp; + fnmgen_ptr = fgp; +} +#endif |