summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2008-03-31 20:50:54 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2008-03-31 20:50:54 +0000
commitc774fa38a573dec61c4a681a06e76a0628f8a468 (patch)
tree77702cd3e2180254d792f074339ccc670292800b /net-misc/nx/files
parentmention quotes I added (diff)
downloadgentoo-2-c774fa38a573dec61c4a681a06e76a0628f8a468.tar.gz
gentoo-2-c774fa38a573dec61c4a681a06e76a0628f8a468.tar.bz2
gentoo-2-c774fa38a573dec61c4a681a06e76a0628f8a468.zip
Fix GCC 4.3 compilation, bug #215489
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-misc/nx/files')
-rw-r--r--net-misc/nx/files/nx-3.1.0-gcc-4.3.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-misc/nx/files/nx-3.1.0-gcc-4.3.patch b/net-misc/nx/files/nx-3.1.0-gcc-4.3.patch
new file mode 100644
index 000000000000..112c697e104b
--- /dev/null
+++ b/net-misc/nx/files/nx-3.1.0-gcc-4.3.patch
@@ -0,0 +1,24 @@
+--- nxcompshad/Misc.h
++++ nxcompshad/Misc.h
+@@ -18,10 +18,10 @@
+ #ifndef Misc_H
+ #define Misc_H
+
+-#include <iostream.h>
++#include <iostream>
+
+-#include <errno.h>
+-#include <string.h>
++#include <cerrno>
++#include <cstring>
+
+ //
+ // Error handling macros.
+@@ -35,6 +35,6 @@
+ // Log file.
+ //
+
+-extern ostream *logofs;
++extern std::ostream *logofs;
+
+ #endif /* Misc_H */