diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-01-22 16:28:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-01-22 16:28:12 +0000 |
commit | 25c6ff6f559a177786591fff09750eef40e0600b (patch) | |
tree | baaddd11f2097104f8dc50978a82cf44ae5b1948 /src/common/torint.h | |
parent | 15d3c285034c105f826481f9e104a268651492bb (diff) | |
download | tor-25c6ff6f559a177786591fff09750eef40e0600b.tar.gz tor-25c6ff6f559a177786591fff09750eef40e0600b.zip |
Support 64-bit time_t. Patch from Matthias Drochner. Partial backport candidate.
svn:r18234
Diffstat (limited to 'src/common/torint.h')
-rw-r--r-- | src/common/torint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/torint.h b/src/common/torint.h index e603aa5fa4..657974d579 100644 --- a/src/common/torint.h +++ b/src/common/torint.h @@ -288,6 +288,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 |