summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2008-05-03 12:04:38 +0000
committerSamuli Suominen <drac@gentoo.org>2008-05-03 12:04:38 +0000
commit38ab7099a33cdf19db4d5130e449c0cb60103039 (patch)
treeeb2f48c75d8637ab259ae626ab5033e04789434c /net-analyzer/xprobe/files
parentAdding patch to fix security bug #219754 (diff)
downloadgentoo-2-38ab7099a33cdf19db4d5130e449c0cb60103039.tar.gz
gentoo-2-38ab7099a33cdf19db4d5130e449c0cb60103039.tar.bz2
gentoo-2-38ab7099a33cdf19db4d5130e449c0cb60103039.zip
Fix building with GCC 4.3 wrt #219629. Thanks to Peter Alfredsen. Also prevent pre-stripping with simple sed.
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'net-analyzer/xprobe/files')
-rw-r--r--net-analyzer/xprobe/files/xprobe-0.3-gcc43.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/net-analyzer/xprobe/files/xprobe-0.3-gcc43.patch b/net-analyzer/xprobe/files/xprobe-0.3-gcc43.patch
new file mode 100644
index 000000000000..1b34690411b2
--- /dev/null
+++ b/net-analyzer/xprobe/files/xprobe-0.3-gcc43.patch
@@ -0,0 +1,32 @@
+diff -ur xprobe2-0.3.orig/libs-external/USI++/src/ip.cc xprobe2-0.3/libs-external/USI++/src/ip.cc
+--- xprobe2-0.3.orig/libs-external/USI++/src/ip.cc 2005-07-27 11:38:15.000000000 +0300
++++ xprobe2-0.3/libs-external/USI++/src/ip.cc 2008-05-03 14:54:03.000000000 +0300
+@@ -13,6 +13,7 @@
+ #include "usi++/ip.h"
+
+ #include "config.h"
++#include <cstdlib>
+ #include <iostream>
+ #include <string.h>
+ #include <errno.h>
+diff -ur xprobe2-0.3.orig/libs-external/USI++/src/misc.cc xprobe2-0.3/libs-external/USI++/src/misc.cc
+--- xprobe2-0.3.orig/libs-external/USI++/src/misc.cc 2005-07-27 11:38:15.000000000 +0300
++++ xprobe2-0.3/libs-external/USI++/src/misc.cc 2008-05-03 14:54:03.000000000 +0300
+@@ -1,5 +1,6 @@
+ #include "usi++/usi++"
+ #include "usi++/usi-structs.h"
++#include <cstdlib>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/ioctl.h>
+diff -ur xprobe2-0.3.orig/libs-external/USI++/usi++/tcp.h xprobe2-0.3/libs-external/USI++/usi++/tcp.h
+--- xprobe2-0.3.orig/libs-external/USI++/usi++/tcp.h 2005-07-27 11:38:14.000000000 +0300
++++ xprobe2-0.3/libs-external/USI++/usi++/tcp.h 2008-05-03 14:54:03.000000000 +0300
+@@ -15,6 +15,7 @@
+ #include "usi-structs.h"
+ #include "datalink.h"
+ #include "ip.h"
++#include <cstring>
+
+ namespace usipp {
+