python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / parted / 0001-readline-deprecated.patch
bloba3f40c8df60fced42258114e7845c27ad174d2b3
1 The CPPFunction typedef (among others) have been deprecated in favour of
2 specific prototyped typedefs since readline 4.2.
3 It's been working since because compatibility typedefs have been
4 in place until they were removed in readline 6.3.
6 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
8 diff -Nura parted-3.1.orig/parted/ui.c parted-3.1/parted/ui.c
9 --- parted-3.1.orig/parted/ui.c 2014-03-01 16:11:41.970827134 -0300
10 +++ parted-3.1/parted/ui.c 2014-03-01 16:11:55.540259786 -0300
11 @@ -1474,7 +1474,7 @@
12 #ifdef HAVE_LIBREADLINE
13 if (!opt_script_mode) {
14 rl_initialize ();
15 - rl_attempted_completion_function = (CPPFunction*) complete_function;
16 + rl_attempted_completion_function = (rl_completion_func_t *) complete_function;
17 readline_state.in_readline = 0;
19 #endif