blob: 776b48264facba035102487e63ef31aeb6ad741f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|