commit d66d6c5fb4f67b9fd75bedab1a2ca34f6bf98ff3
parent ab04395a7989a225d9c1a4ce0f35505952337f08
Author: Antoni Sawicki <tenox@google.com>
Date: Wed, 1 May 2019 18:31:00 -0700
add fix for solaris
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/ttyplot.c b/ttyplot.c
@@ -281,7 +281,11 @@ int main(int argc, char *argv[]) {
mvprintw(height-1, width-sizeof(verstring)/sizeof(char), verstring);
lt=localtime(&t1);
+ #ifdef __sun
+ asctime_r(lt, ls, sizeof(ls));
+ #else
asctime_r(lt, ls);
+ #endif
mvprintw(height-2, width-strlen(ls), "%s", ls);
#ifdef _AIX