mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add <cstring> and/or <cstdlib> to support modern gcc
Four of these five patches should have been part of the previous commit but I didn't notice them. The ampasCTL pach is to fix a regression that I introduced by removing part of the post-patch target. Approved by: gcc5 support blanket
This commit is contained in:
parent
671332be8e
commit
aa8eddd2a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397382
5 changed files with 44 additions and 4 deletions
10
converters/fix-mime-charset/files/patch-src_input.cc
Normal file
10
converters/fix-mime-charset/files/patch-src_input.cc
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- src/input.cc.orig 2003-07-29 23:29:11 UTC
|
||||||
|
+++ src/input.cc
|
||||||
|
@@ -3,6 +3,7 @@
|
||||||
|
#include "input.h"
|
||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
/* Input */
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
--- ./lib/dpx/dpx_util.cc.orig 2013-10-12 18:55:34.000000000 +0200
|
--- lib/dpx/dpx_util.cc.orig 2014-06-03 01:11:24 UTC
|
||||||
+++ ./lib/dpx/dpx_util.cc 2013-10-12 18:55:55.000000000 +0200
|
+++ lib/dpx/dpx_util.cc
|
||||||
@@ -57,6 +57,7 @@
|
@@ -55,8 +55,8 @@
|
||||||
|
#include "dpx_util.hh"
|
||||||
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
-#include <alloca.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
+#include <stdlib.h>
|
+#include <stdlib.h>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
--- src/classes/optFileWriter.cc.intermediate 2015-09-20 01:43:24 UTC
|
||||||
|
+++ src/classes/optFileWriter.cc
|
||||||
|
@@ -1,5 +1,6 @@
|
||||||
|
#include "optFileWriter.h"
|
||||||
|
#include <cstdlib>
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
|
optFileWriter::optFileWriter(char *what_file, nodes *what_nodes) {
|
10
graphics/graphopt/files/patch-src_classes_psExporter.cc
Normal file
10
graphics/graphopt/files/patch-src_classes_psExporter.cc
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
--- src/classes/psExporter.cc.intermediate 2015-09-20 01:43:24 UTC
|
||||||
|
+++ src/classes/psExporter.cc
|
||||||
|
@@ -1,6 +1,6 @@
|
||||||
|
#include "psExporter.h"
|
||||||
|
#include <cstdlib>
|
||||||
|
-
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
psExporter::psExporter(char *what_file, nodes *what_nodes) {
|
||||||
|
filename = strdup(what_file);
|
|
@ -0,0 +1,9 @@
|
||||||
|
--- src/classes/visioExporter.cc.intermediate 2015-09-20 01:43:24 UTC
|
||||||
|
+++ src/classes/visioExporter.cc
|
||||||
|
@@ -1,5 +1,6 @@
|
||||||
|
#include "visioExporter.h"
|
||||||
|
#include <cstdlib>
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
|
visioExporter::visioExporter(char *what_file, nodes *what_nodes) {
|
Loading…
Add table
Reference in a new issue