diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-04-27 09:04:29 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-04-27 09:04:29 +0000 |
commit | 22bbff4e59b8c730d2265f8ab606ee04e93dd5e7 (patch) | |
tree | 45461066bab74187a529a87d0c0d94c4a82b1b37 /textproc/htmltolatex/files/patch-util.cpp | |
parent | - Update WWW (diff) |
textproc/htmltolatex: fix build with GCC-based architectures
Add USES=compiler:c++11-lang.
Add include <cstring> and <strings.h> to CH2L.cpp.
Add include <cstring> to util.cpp.
Required to build with GCC (used on GCC architectures):
undefined reference to std::__cxx11::basic_string
PR: 237549
Approved by: pi (maintainer), tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D20050
Notes
Notes:
svn path=/head/; revision=500204
Diffstat (limited to 'textproc/htmltolatex/files/patch-util.cpp')
-rw-r--r-- | textproc/htmltolatex/files/patch-util.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/textproc/htmltolatex/files/patch-util.cpp b/textproc/htmltolatex/files/patch-util.cpp index 2e942e4a33a4..caf73dbacd58 100644 --- a/textproc/htmltolatex/files/patch-util.cpp +++ b/textproc/htmltolatex/files/patch-util.cpp @@ -1,6 +1,6 @@ ---- util.cpp.orig Fri Feb 21 03:47:33 2003 -+++ util.cpp Fri Feb 21 03:47:46 2003 -@@ -18,6 +18,9 @@ +--- util.cpp.orig 2001-10-10 12:24:27 UTC ++++ util.cpp +@@ -18,9 +18,13 @@ * Boston, MA 02111-1307, USA. * */ @@ -10,7 +10,11 @@ #include "util.h" #include <map> #include <ctype.h> -@@ -35,7 +38,6 @@ ++#include <cstring> + #include <sys/param.h> + #include <stdio.h> + #include <unistd.h> +@@ -35,7 +39,6 @@ extern "C"{ #include "fetch.h" } #endif |