[2.28] add niepce
[jhbuild.git] / patches / libmusicbrainz-missing-includes.patch
blob5f6d932e0e9701b5f43c589147c3d567e7235fe6
1 diff -ur libmusicbrainz-2.1.4.orig/lib/comhttpsocket.cpp libmusicbrainz-2.1.4/lib/comhttpsocket.cpp
2 --- libmusicbrainz-2.1.4.orig/lib/comhttpsocket.cpp 2006-05-12 04:16:54.000000000 +0930
3 +++ libmusicbrainz-2.1.4/lib/comhttpsocket.cpp 2008-08-31 20:35:16.000000000 +0930
4 @@ -20,6 +20,7 @@
5 #endif
6 #include <stdlib.h>
7 #include <assert.h>
8 +#include <string.h>
10 const char* g_strCOMVer = "libmusicbrainz/"VERSION;
12 diff -ur libmusicbrainz-2.1.4.orig/lib/comsocket.cpp libmusicbrainz-2.1.4/lib/comsocket.cpp
13 --- libmusicbrainz-2.1.4.orig/lib/comsocket.cpp 2006-05-12 04:16:54.000000000 +0930
14 +++ libmusicbrainz-2.1.4/lib/comsocket.cpp 2008-08-31 20:35:16.000000000 +0930
15 @@ -32,6 +32,7 @@
16 #include "config.h"
18 #include "comsocket.h"
19 +#include <string.h>
20 #ifndef WIN32
22 #include <netinet/tcp.h>
23 diff -ur libmusicbrainz-2.1.4.orig/lib/c_wrapper.cpp libmusicbrainz-2.1.4/lib/c_wrapper.cpp
24 --- libmusicbrainz-2.1.4.orig/lib/c_wrapper.cpp 2003-10-17 07:51:10.000000000 +0930
25 +++ libmusicbrainz-2.1.4/lib/c_wrapper.cpp 2008-08-31 20:35:16.000000000 +0930
26 @@ -24,6 +24,7 @@
27 #include "musicbrainz.h"
28 #include "trm.h"
29 #include "mb_c.h"
30 +#include <string.h>
32 extern "C"
34 diff -ur libmusicbrainz-2.1.4.orig/lib/http.cpp libmusicbrainz-2.1.4/lib/http.cpp
35 --- libmusicbrainz-2.1.4.orig/lib/http.cpp 2006-08-21 21:58:47.000000000 +0930
36 +++ libmusicbrainz-2.1.4/lib/http.cpp 2008-08-31 20:35:16.000000000 +0930
37 @@ -26,6 +26,8 @@
38 #include <sys/types.h>
39 #include <sys/stat.h>
40 #include <ctype.h>
41 +#include <string.h>
42 +#include <stdlib.h>
43 #ifndef WIN32
44 #include <sys/time.h>
45 #endif
46 diff -ur libmusicbrainz-2.1.4.orig/lib/sigclient.cpp libmusicbrainz-2.1.4/lib/sigclient.cpp
47 --- libmusicbrainz-2.1.4.orig/lib/sigclient.cpp 2006-05-12 04:16:54.000000000 +0930
48 +++ libmusicbrainz-2.1.4/lib/sigclient.cpp 2008-08-31 20:35:16.000000000 +0930
49 @@ -37,6 +37,7 @@
50 #include "comhttpsocket.h"
52 #include "sigxdr.h"
53 +#include <string.h>
55 char tooShortTRM[] = { 0xf9, 0x80, 0x9a, 0xb1, 0x2b, 0x0f, 0x4d, 0x78,
56 0x88, 0x62, 0xfb, 0x42, 0x5a, 0xde, 0x8a, 0xb9 };