Code Review
/
samplevnf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Support packets in flight
[samplevnf.git]
/
VNFs
/
DPPD-PROX
/
input_curses.c
diff --git
a/VNFs/DPPD-PROX/input_curses.c
b/VNFs/DPPD-PROX/input_curses.c
index
6f79869
..
346b0e3
100644
(file)
--- a/
VNFs/DPPD-PROX/input_curses.c
+++ b/
VNFs/DPPD-PROX/input_curses.c
@@
-28,6
+28,8
@@
#include "input_curses.h"
#include "histedit.h"
#include "input_curses.h"
#include "histedit.h"
+#include "libedit_autoconf.h"
+
static EditLine *el;
static History *hist;
static EditLine *el;
static History *hist;
@@
-124,7
+126,11
@@
static int peek_stdin(void)
return FD_ISSET(fileno(stdin), &in_fd);
}
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)
static int get_char(EditLine *e, char *c)
+#endif
{
*c = display_getch();
{
*c = display_getch();
@@
-167,6
+173,10
@@
static int get_char(EditLine *e, char *c)
return 1;
}
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;
static void proc_keyboard(struct input *input)
{
const char *line;