X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=VNFs%2FDPPD-PROX%2Finput_curses.c;h=4ea2e4a86d0c217eb186a1ad25f416372146b8eb;hb=refs%2Fchanges%2F39%2F72439%2F4;hp=6f79869b95734d9e89ac0974fb9a752c4c990b32;hpb=51759157a499326cfe69ec0eecb00b1c5879bf50;p=samplevnf.git diff --git a/VNFs/DPPD-PROX/input_curses.c b/VNFs/DPPD-PROX/input_curses.c index 6f79869b..4ea2e4a8 100644 --- a/VNFs/DPPD-PROX/input_curses.c +++ b/VNFs/DPPD-PROX/input_curses.c @@ -27,6 +27,7 @@ #include "cmd_parser.h" #include "input_curses.h" #include "histedit.h" +#include "libedit_autoconf.h" static EditLine *el; static History *hist; @@ -124,7 +125,11 @@ static int peek_stdin(void) return FD_ISSET(fileno(stdin), &in_fd); } +#ifdef HAVE_LIBEDIT_EL_RFUNC_T +static int do_get_char(EditLine *e, wchar_t *c) +#else static int get_char(EditLine *e, char *c) +#endif { *c = display_getch(); @@ -167,6 +172,10 @@ static int get_char(EditLine *e, char *c) return 1; } +#ifdef HAVE_LIBEDIT_EL_RFUNC_T +static el_rfunc_t get_char = &do_get_char; +#endif + static void proc_keyboard(struct input *input) { const char *line;