freebsd-ports/textproc/htmltolatex/files/patch-util.cpp
Piotr Kubaj 22bbff4e59 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
2019-04-27 09:04:29 +00:00

24 lines
408 B
C++

--- util.cpp.orig 2001-10-10 12:24:27 UTC
+++ util.cpp
@@ -18,9 +18,13 @@
* Boston, MA 02111-1307, USA.
*
*/
+
+using namespace std;
+
#include "util.h"
#include <map>
#include <ctype.h>
+#include <cstring>
#include <sys/param.h>
#include <stdio.h>
#include <unistd.h>
@@ -35,7 +39,6 @@ extern "C"{
#include "fetch.h"
}
#endif
-using namespace std;
static map<string,int> gsSpecialTable;