summaryrefslogtreecommitdiffstats
path: root/patches/cgicc-3.2.7/cgicc-3.2.7-memcopy-undeclared.diff
blob: ee89960b0f59289ec1a8988031d1cf657ffe6dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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>