Skip to content

Commit

Permalink
common: define time_t as 64bit
Browse files Browse the repository at this point in the history
To avoid the year 2038 problem time_t must be 64bit on all architectures.

Signed-off-by: Heinrich Schuchardt <[email protected]>
  • Loading branch information
xypron authored and trini committed Jul 25, 2023
1 parent b378fdd commit 17335a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ typedef __kernel_ptrdiff_t ptrdiff_t;

#ifndef _TIME_T
#define _TIME_T
typedef __kernel_time_t time_t;
typedef long long time_t;
#endif

#ifndef _CLOCK_T
Expand Down

0 comments on commit 17335a8

Please sign in to comment.