summaryrefslogtreecommitdiff
path: root/system/db/time64.patch
blob: 12ef0508aecd51a16b127b0a0a8863adf539b15f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
By the comment's own admission, this cannot affect on-disk nor ABI because
'long' varies per architecture.  So, this change is always correct.

--- db-5.3.28/src/dbinc/clock.h.old     2013-09-09 15:35:08.000000000 +0000
+++ db-5.3.28/src/dbinc/clock.h 2020-01-31 19:22:11.630000000 +0000
@@ -54,11 +54,7 @@
  */
 typedef struct {
 	time_t	tv_sec;				/* seconds */
-#ifdef HAVE_MIXED_SIZE_ADDRESSING
-	int32_t tv_nsec;
-#else
-	long	tv_nsec;			/* nanoseconds */
-#endif
+	time_t	tv_nsec;			/* nanoseconds */
 } db_timespec;
 
 /* Operations on timespecs */