diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-27 17:18:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-10-27 17:18:42 +0000 |
commit | f881839e00a6387bf00dc5c48ad123e723ee7657 (patch) | |
tree | a9e3de92c58d16087d3a4b4ad1a5f0776d3c6903 /main/dansguardian/dansguardian-2.10.1.1-gcc44.patch | |
parent | 73dee2badd4fb36683da25e91444d29ea5692f1d (diff) | |
download | aports-f881839e00a6387bf00dc5c48ad123e723ee7657.tar.bz2 aports-f881839e00a6387bf00dc5c48ad123e723ee7657.tar.xz |
main/dansguardian: build against libstdc++
uclibc++ is broken
Diffstat (limited to 'main/dansguardian/dansguardian-2.10.1.1-gcc44.patch')
-rw-r--r-- | main/dansguardian/dansguardian-2.10.1.1-gcc44.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/dansguardian/dansguardian-2.10.1.1-gcc44.patch b/main/dansguardian/dansguardian-2.10.1.1-gcc44.patch new file mode 100644 index 0000000000..4ea4ff9ef6 --- /dev/null +++ b/main/dansguardian/dansguardian-2.10.1.1-gcc44.patch @@ -0,0 +1,37 @@ +diff -Nru dansguardian-2.10.1.1.orig/src/ConnectionHandler.cpp dansguardian-2.10.1.1/src/ConnectionHandler.cpp +--- dansguardian-2.10.1.1.orig/src/ConnectionHandler.cpp 2009-02-25 12:36:22.000000000 +0100 ++++ dansguardian-2.10.1.1/src/ConnectionHandler.cpp 2009-07-05 01:15:52.000000000 +0200 +@@ -44,6 +44,7 @@ + #include <istream> + + #ifdef ENABLE_ORIG_IP ++#include <limits.h> + #include <linux/types.h> + #include <linux/netfilter_ipv4.h> + #endif +diff -Nru dansguardian-2.10.1.1.orig/src/downloadmanagers/fancy.cpp dansguardian-2.10.1.1/src/downloadmanagers/fancy.cpp +--- dansguardian-2.10.1.1.orig/src/downloadmanagers/fancy.cpp 2008-11-18 12:27:04.000000000 +0100 ++++ dansguardian-2.10.1.1/src/downloadmanagers/fancy.cpp 2009-07-05 01:15:12.000000000 +0200 +@@ -26,6 +26,7 @@ + #include "../HTMLTemplate.hpp" + #include "../ConnectionHandler.hpp" + ++#include <stdio.h> + #include <syslog.h> + #include <sys/time.h> + #include <sys/types.h> +diff -Nru dansguardian-2.10.1.1.orig/src/String.cpp dansguardian-2.10.1.1/src/String.cpp +--- dansguardian-2.10.1.1.orig/src/String.cpp 2009-01-16 11:44:28.000000000 +0100 ++++ dansguardian-2.10.1.1/src/String.cpp 2009-07-05 01:15:12.000000000 +0200 +@@ -164,9 +164,9 @@ + return 0; + off_t t = 0; + if (sizeof(off_t) == 4) +- sscanf(this->c_str(), "%d", &t); ++ sscanf(this->c_str(), "%d", (long *)&t); + else if (sizeof(off_t) == 8) +- sscanf(this->c_str(), "%lld", &t); ++ sscanf(this->c_str(), "%lld", (long long*)&t); + return t; + } + |