diff options
Diffstat (limited to 'dev-db/recutils/files/recutils-1.9-add-const.patch')
| -rw-r--r-- | dev-db/recutils/files/recutils-1.9-add-const.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-db/recutils/files/recutils-1.9-add-const.patch b/dev-db/recutils/files/recutils-1.9-add-const.patch new file mode 100644 index 000000000000..b8c14845d11e --- /dev/null +++ b/dev-db/recutils/files/recutils-1.9-add-const.patch @@ -0,0 +1,14 @@ +Cast bash-generated argv from char ** to const char ** so it would be of the same +type argv was declared +https://bugs.gentoo.org/941542 +--- a/bash/testrec.c ++++ b/bash/testrec.c +@@ -60,7 +60,7 @@ + + /* Get arguments and verify them. */ + +- argv = make_builtin_argv (list, &argc); ++ argv = (const char**)make_builtin_argv (list, &argc); + if ((argc != 3) + || ((strcmp (argv[0], "[%") == 0) && ((strlen (argv[2]) == 2) && ((argv[2][0] != '%') || (argv[2][1] != ']'))))) + { |
