summaryrefslogtreecommitdiff
path: root/lang/php5/patches/patch-as
blob: 2dd299ff4e27d64f65dc5b9799c203d363bd0dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-as,v 1.2 2006/08/19 16:44:15 taca Exp $

--- ext/date/lib/timelib_structs.h.orig	2006-04-12 03:03:52.000000000 +0900
+++ ext/date/lib/timelib_structs.h
@@ -21,7 +21,7 @@
 #ifndef __TIMELIB_STRUCTS_H__
 #define __TIMELIB_STRUCTS_H__
 
-#include <timelib_config.h>
+#include "timelib_config.h"
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
@@ -183,7 +183,11 @@ typedef struct _timelib_tzdb {
 #define TIMELIB_ZONETYPE_ABBR   2
 #define TIMELIB_ZONETYPE_ID     3
 
+#if defined(SIZEOF_LONG_LONG_INT) && (SIZEOF_LONG_LONG_INT == 8)
+#define SECS_PER_ERA 12622780800LL
+#else
 #define SECS_PER_ERA 12622780800L
+#endif
 #define SECS_PER_DAY       86400
 #define DAYS_PER_YEAR        365
 #define DAYS_PER_LYEAR       366