1 |
jer 09/07/03 00:08:44 |
2 |
|
3 |
Added: libpqxx-2.6.9-gcc44.patch |
4 |
Log: |
5 |
Fix compiling with gcc 4.4, stable for HPPA (bug #249248). |
6 |
(Portage version: 2.2_rc33/cvs/Linux i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-libs/libpqxx/files/libpqxx-2.6.9-gcc44.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libpqxx/files/libpqxx-2.6.9-gcc44.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libpqxx/files/libpqxx-2.6.9-gcc44.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: libpqxx-2.6.9-gcc44.patch |
15 |
=================================================================== |
16 |
Taken from Debian's patchset to fix compilation with gcc-4.4 - JeR |
17 |
|
18 |
--- libpqxx-2.6.9.orig/src/transaction_base.cxx |
19 |
+++ libpqxx-2.6.9/src/transaction_base.cxx |
20 |
@@ -18,6 +18,7 @@ |
21 |
*/ |
22 |
#include "pqxx/compiler-internal.hxx" |
23 |
|
24 |
+#include <cstring> |
25 |
#include <stdexcept> |
26 |
|
27 |
#include "pqxx/connection_base" |
28 |
--- libpqxx-2.6.9.orig/src/binarystring.cxx |
29 |
+++ libpqxx-2.6.9/src/binarystring.cxx |
30 |
@@ -16,6 +16,7 @@ |
31 |
*/ |
32 |
#include "pqxx/compiler-internal.hxx" |
33 |
|
34 |
+#include <cstring> |
35 |
#include <new> |
36 |
#include <stdexcept> |
37 |
|
38 |
--- libpqxx-2.6.9.orig/src/result.cxx |
39 |
+++ libpqxx-2.6.9/src/result.cxx |
40 |
@@ -17,6 +17,8 @@ |
41 |
*/ |
42 |
#include "pqxx/compiler-internal.hxx" |
43 |
|
44 |
+#include <cstdlib> |
45 |
+#include <cstring> |
46 |
#include <stdexcept> |
47 |
|
48 |
#include "libpq-fe.h" |
49 |
@@ -44,7 +46,7 @@ |
50 |
pqxx::internal::result_data::~result_data() { PQclear(data); } |
51 |
|
52 |
|
53 |
-void pqxx::internal::freemem_result_data(result_data *d) throw () { delete d; } |
54 |
+void PQXX_LIBEXPORT pqxx::internal::freemem_result_data(result_data *d) throw () { delete d; } |
55 |
|
56 |
|
57 |
pqxx::result::result(pqxx::internal::pq::PGresult *rhs, |
58 |
--- libpqxx-2.6.9.orig/src/cursor.cxx |
59 |
+++ libpqxx-2.6.9/src/cursor.cxx |
60 |
@@ -18,6 +18,7 @@ |
61 |
#include "pqxx/compiler-internal.hxx" |
62 |
|
63 |
#include <cstdlib> |
64 |
+#include <cstring> |
65 |
|
66 |
#include "pqxx/cursor" |
67 |
#include "pqxx/result" |
68 |
--- libpqxx-2.6.9.orig/src/connection_base.cxx |
69 |
+++ libpqxx-2.6.9/src/connection_base.cxx |
70 |
@@ -21,6 +21,7 @@ |
71 |
#include <cassert> |
72 |
#include <cerrno> |
73 |
#include <cstdio> |
74 |
+#include <cstring> |
75 |
#include <ctime> |
76 |
#include <stdexcept> |
77 |
|
78 |
--- libpqxx-2.6.9.orig/test/test003.cxx |
79 |
+++ libpqxx-2.6.9/test/test003.cxx |
80 |
@@ -1,4 +1,5 @@ |
81 |
#include <cstdio> |
82 |
+#include <cstdlib> |
83 |
#include <iostream> |
84 |
#include <stdexcept> |
85 |
|
86 |
--- libpqxx-2.6.9.orig/test/test092.cxx |
87 |
+++ libpqxx-2.6.9/test/test092.cxx |
88 |
@@ -1,4 +1,5 @@ |
89 |
#include <cassert> |
90 |
+#include <cstring> |
91 |
#include <iostream> |
92 |
#include <list> |
93 |
|
94 |
--- libpqxx-2.6.9.orig/test/test030.cxx |
95 |
+++ libpqxx-2.6.9/test/test030.cxx |
96 |
@@ -1,4 +1,5 @@ |
97 |
#include <cstdio> |
98 |
+#include <cstring> |
99 |
#include <iostream> |
100 |
|
101 |
#include <pqxx/connection> |
102 |
--- libpqxx-2.6.9.orig/test/test022.cxx |
103 |
+++ libpqxx-2.6.9/test/test022.cxx |
104 |
@@ -1,4 +1,5 @@ |
105 |
#include <cstdio> |
106 |
+#include <cstdlib> |
107 |
#include <iostream> |
108 |
#include <stdexcept> |
109 |
|
110 |
--- libpqxx-2.6.9.orig/test/test011.cxx |
111 |
+++ libpqxx-2.6.9/test/test011.cxx |
112 |
@@ -1,4 +1,5 @@ |
113 |
#include <cstdio> |
114 |
+#include <cstring> |
115 |
#include <iostream> |
116 |
|
117 |
#include <pqxx/connection> |