diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2020-02-17 22:36:08 +0100 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2020-02-18 17:01:33 +0100 |
commit | d043c6b82872b31f37ac20ddf04f65a5447bd856 (patch) | |
tree | 9fc403fb737dd8552a9e77038ff6d3fa131c9406 /libtests | |
parent | 52a2e95dd5ab2c2a197aa0a564a4e09c551e8309 (diff) | |
download | qpdf-d043c6b82872b31f37ac20ddf04f65a5447bd856.tar.zst |
libtests/cxx11.cc: fix build with gcc 4.8
Build fails on gcc 4.8 since version 9.1.1 and commit
752416554086d5d34323bc14164d5084db83cfbd:
libtests/cxx11.cc: In function 'void do_regex()':
libtests/cxx11.cc:347:42: error: 'strlen' is not a member of 'std'
std::cregex_iterator m3(str7, str7 + std::strlen(str7), expr4);
^
To fix the build failure, add missing include on cstring
Fixes:
- http://autobuild.buildroot.org/results/ad7fb68ae87850a85509eed80fd0cae8721b10c5
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Diffstat (limited to 'libtests')
-rw-r--r-- | libtests/cxx11.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libtests/cxx11.cc b/libtests/cxx11.cc index fa1dc6b0..91ed7b15 100644 --- a/libtests/cxx11.cc +++ b/libtests/cxx11.cc @@ -1,5 +1,6 @@ #include <iostream> #include <cassert> +#include <cstring> #include <functional> #include <type_traits> #include <cstdint> |