diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-12-26 09:02:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-12-26 09:02:51 +0000 |
commit | 2ed9a1defe3b7af04306c0eec482cc333287323e (patch) | |
tree | 7f516e864e00bd81491b8074579b0287a40796c6 /net-analyzer/wireshark/files | |
parent | Version bump, fixed security issue, bug #251044, thank Bruno Buss for report.... (diff) | |
download | historical-2ed9a1defe3b7af04306c0eec482cc333287323e.tar.gz historical-2ed9a1defe3b7af04306c0eec482cc333287323e.tar.bz2 historical-2ed9a1defe3b7af04306c0eec482cc333287323e.zip |
Fix building on 64bit systems due to implicit string prototypes.
Package-Manager: portage-2.2_rc18/cvs/Linux 2.6.28 x86_64
Diffstat (limited to 'net-analyzer/wireshark/files')
-rw-r--r-- | net-analyzer/wireshark/files/wireshark-1.0.5-text2pcap-protos.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net-analyzer/wireshark/files/wireshark-1.0.5-text2pcap-protos.patch b/net-analyzer/wireshark/files/wireshark-1.0.5-text2pcap-protos.patch new file mode 100644 index 000000000000..eed2df16a70b --- /dev/null +++ b/net-analyzer/wireshark/files/wireshark-1.0.5-text2pcap-protos.patch @@ -0,0 +1,18 @@ +defining _XOPEN_SOURCE to nothing means the oldest version which means glibc +will not provide the strdup() prototype. this leads to an implicit decl which +leads to a return type of "int" -- 32bits of a ptr on a 64bit arch leads to +kaboom. + +https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3161 + +--- text2pcap.c ++++ text2pcap.c +@@ -90,7 +90,7 @@ + # define __USE_XOPEN + #endif + #ifndef _XOPEN_SOURCE +-# define _XOPEN_SOURCE ++# define _XOPEN_SOURCE 600 + #endif + + #include <ctype.h> |