summaryrefslogtreecommitdiff
path: root/net/tor
diff options
context:
space:
mode:
authordrochner <drochner>2009-01-22 12:46:51 +0000
committerdrochner <drochner>2009-01-22 12:46:51 +0000
commit05eccb8e73063cd4cb484a1400289766a7e5d4cd (patch)
tree250d928495368033182dff1779956ebd663c72e3 /net/tor
parent89f2da7ed74e4c6699d4525671d4dd7f1a57cbb0 (diff)
downloadpkgsrc-05eccb8e73063cd4cb484a1400289766a7e5d4cd.tar.gz
make this build with 64-bit time_t
(There are some unclean typecasts in the code, but the cases I've seen are harmless -- as long as poll intervals, cert lifetimes etc don't reach into y2037 which would be problematic in any case.)
Diffstat (limited to 'net/tor')
-rw-r--r--net/tor/distinfo3
-rw-r--r--net/tor/patches/patch-ac13
2 files changed, 15 insertions, 1 deletions
diff --git a/net/tor/distinfo b/net/tor/distinfo
index 75879a335f9..3f1f2e41f82 100644
--- a/net/tor/distinfo
+++ b/net/tor/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.31 2008/12/21 11:10:27 obache Exp $
+$NetBSD: distinfo,v 1.32 2009/01/22 12:46:51 drochner Exp $
SHA1 (tor-0.2.0.32.tar.gz) = 0e48d0706f1717afc6d19228a8878c3bc379b25d
RMD160 (tor-0.2.0.32.tar.gz) = e87bee7d7dadf17280bf0b11245b0bad70d68fc2
Size (tor-0.2.0.32.tar.gz) = 2159864 bytes
SHA1 (patch-aa) = 630e1e0a9591c136987b504e73c64ff9f53b54e9
SHA1 (patch-ab) = 3363efdcf8b9918c1249add1046077f2323a11ff
+SHA1 (patch-ac) = 00afc6a897816db3efc925a47cb1de459e4b382a
diff --git a/net/tor/patches/patch-ac b/net/tor/patches/patch-ac
new file mode 100644
index 00000000000..776b48264fa
--- /dev/null
+++ b/net/tor/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.6 2009/01/22 12:46:51 drochner Exp $
+
+--- ./src/common/torint.h.orig 2009-01-22 12:02:50.000000000 +0100
++++ ./src/common/torint.h
+@@ -290,6 +290,8 @@ typedef uint32_t uintptr_t;
+ #define TIME_MAX ((time_t)INT_MAX)
+ #elif (SIZEOF_TIME_T == SIZEOF_LONG)
+ #define TIME_MAX ((time_t)LONG_MAX)
++#elif (SIZEOF_TIME_T == 8)
++#define TIME_MAX ((time_t)INT64_MAX)
+ #else
+ #error "Can't define (signed) TIME_MAX"
+ #endif