diff options
author | drochner <drochner> | 2009-01-22 12:46:51 +0000 |
---|---|---|
committer | drochner <drochner> | 2009-01-22 12:46:51 +0000 |
commit | 05eccb8e73063cd4cb484a1400289766a7e5d4cd (patch) | |
tree | 250d928495368033182dff1779956ebd663c72e3 /net/tor/patches | |
parent | 89f2da7ed74e4c6699d4525671d4dd7f1a57cbb0 (diff) | |
download | pkgsrc-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/patches')
-rw-r--r-- | net/tor/patches/patch-ac | 13 |
1 files changed, 13 insertions, 0 deletions
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 |