summaryrefslogtreecommitdiff
path: root/lib/readline/history.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline/history.c')
-rw-r--r--lib/readline/history.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/readline/history.c b/lib/readline/history.c
index 42580301..ee52e829 100644
--- a/lib/readline/history.c
+++ b/lib/readline/history.c
@@ -42,6 +42,7 @@
# endif
# include <unistd.h>
#endif
+#include "posixtime.h"
#include <errno.h>
@@ -261,7 +262,7 @@ hist_inittime (void)
time_t t;
char ts[64], *ret;
- t = (time_t) time ((time_t *)0);
+ t = getnow ();
#if defined (HAVE_VSNPRINTF) /* assume snprintf if vsnprintf exists */
snprintf (ts, sizeof (ts) - 1, "X%lu", (unsigned long) t);
#else