summaryrefslogtreecommitdiff
path: root/include/mysql_time.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mysql_time.h')
-rw-r--r--include/mysql_time.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mysql_time.h b/include/mysql_time.h
index 943d018fc14..32da27ba33e 100644
--- a/include/mysql_time.h
+++ b/include/mysql_time.h
@@ -34,4 +34,13 @@ typedef struct st_mysql_time
enum enum_mysql_timestamp_type time_type;
} MYSQL_TIME;
+
+/*
+ Portable time_t replacement.
+ Should be signed and hold seconds for 1902-2038 range.
+*/
+typedef long my_time_t;
+#define MY_TIME_T_MAX LONG_MAX
+#define MY_TIME_T_MIN LONG_MIN
+
#endif /* _mysql_time_h_ */