* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / audio / libmusicbrainz / hotfix-gcc43.patch
blob34e8538c2475b101327137742b32369d83dc6554
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../libmusicbrainz/gcc43.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -Naur libmusicbrainz-2.1.4-orig/lib/c_wrapper.cpp libmusicbrainz-2.1.4/lib/c_wrapper.cpp
18 --- libmusicbrainz-2.1.4-orig/lib/c_wrapper.cpp 2003-10-16 16:21:10.000000000 -0600
19 +++ libmusicbrainz-2.1.4/lib/c_wrapper.cpp 2007-12-16 09:45:21.000000000 -0600
20 @@ -24,6 +24,7 @@
21 #include "musicbrainz.h"
22 #include "trm.h"
23 #include "mb_c.h"
24 +#include <cstring>
26 extern "C"
28 diff -Naur libmusicbrainz-2.1.4-orig/lib/comhttpsocket.cpp libmusicbrainz-2.1.4/lib/comhttpsocket.cpp
29 --- libmusicbrainz-2.1.4-orig/lib/comhttpsocket.cpp 2006-05-11 12:46:54.000000000 -0600
30 +++ libmusicbrainz-2.1.4/lib/comhttpsocket.cpp 2007-12-16 09:46:28.000000000 -0600
31 @@ -20,6 +20,7 @@
32 #endif
33 #include <stdlib.h>
34 #include <assert.h>
35 +#include <cstring>
37 const char* g_strCOMVer = "libmusicbrainz/"VERSION;
39 diff -Naur libmusicbrainz-2.1.4-orig/lib/comsocket.cpp libmusicbrainz-2.1.4/lib/comsocket.cpp
40 --- libmusicbrainz-2.1.4-orig/lib/comsocket.cpp 2006-05-11 12:46:54.000000000 -0600
41 +++ libmusicbrainz-2.1.4/lib/comsocket.cpp 2007-12-16 09:46:08.000000000 -0600
42 @@ -37,6 +37,7 @@
43 #include <netinet/tcp.h>
44 #include <errno.h>
45 #include <stdio.h>
46 +#include <cstring>
47 #include <sys/time.h>
48 #include <sys/types.h>
49 #include <unistd.h>
50 diff -Naur libmusicbrainz-2.1.4-orig/lib/http.cpp libmusicbrainz-2.1.4/lib/http.cpp
51 --- libmusicbrainz-2.1.4-orig/lib/http.cpp 2007-12-16 09:52:48.000000000 -0600
52 +++ libmusicbrainz-2.1.4/lib/http.cpp 2007-12-16 09:52:36.000000000 -0600
53 @@ -31,6 +31,8 @@
54 #endif
55 #include <fcntl.h>
56 #include <errno.h>
57 +#include <cstring>
58 +#include <cstdlib>
60 #ifdef WIN32
61 #include <winsock.h>
62 diff -Naur libmusicbrainz-2.1.4-orig/lib/sigclient.cpp libmusicbrainz-2.1.4/lib/sigclient.cpp
63 --- libmusicbrainz-2.1.4-orig/lib/sigclient.cpp 2006-05-11 12:46:54.000000000 -0600
64 +++ libmusicbrainz-2.1.4/lib/sigclient.cpp 2007-12-16 09:54:48.000000000 -0600
65 @@ -33,6 +33,8 @@
66 #pragma warning(disable:4786)
67 #endif
69 +#include <cstring>
71 #include "sigclient.h"
72 #include "comhttpsocket.h"