summaryrefslogtreecommitdiffstats
path: root/patches/cgicc-3.2.7/cgicc-3.2.7-memcopy-undeclared.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/cgicc-3.2.7/cgicc-3.2.7-memcopy-undeclared.diff')
-rw-r--r--patches/cgicc-3.2.7/cgicc-3.2.7-memcopy-undeclared.diff31
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/cgicc-3.2.7/cgicc-3.2.7-memcopy-undeclared.diff b/patches/cgicc-3.2.7/cgicc-3.2.7-memcopy-undeclared.diff
new file mode 100644
index 000000000..ee89960b0
--- /dev/null
+++ b/patches/cgicc-3.2.7/cgicc-3.2.7-memcopy-undeclared.diff
@@ -0,0 +1,31 @@
+From: Robert Schwebel <r.schwebel@pengutronix.de>
+Subject: [patch] fix missing includes
+
+When built with gcc-4.3.2, cgicc-3.2.7 cannot be compiled because of a
+missing include:
+
+dns.cpp:128: error: 'memcpy' was not declared in this scope
+dns.cpp:160: error: 'memcpy' was not declared in this scope
+make[2]: *** [dns.o] Error 1
+
+Fix it.
+
+Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
+Upstream-status: https://savannah.gnu.org/bugs/?25211
+
+---
+ demo/dns.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: cgicc-3.2.7/demo/dns.cpp
+===================================================================
+--- cgicc-3.2.7.orig/demo/dns.cpp
++++ cgicc-3.2.7/demo/dns.cpp
+@@ -30,6 +30,7 @@
+ */
+
+ #include <cstdlib>
++#include <cstring>
+ #include <new>
+ #include <vector>
+ #include <stdexcept>