Skip to content

Commit d66d6c5

Browse files
committed
add fix for solaris
1 parent ab04395 commit d66d6c5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ttyplot.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,11 @@ int main(int argc, char *argv[]) {
281281
mvprintw(height-1, width-sizeof(verstring)/sizeof(char), verstring);
282282

283283
lt=localtime(&t1);
284+
#ifdef __sun
285+
asctime_r(lt, ls, sizeof(ls));
286+
#else
284287
asctime_r(lt, ls);
288+
#endif
285289
mvprintw(height-2, width-strlen(ls), "%s", ls);
286290

287291
#ifdef _AIX

0 commit comments

Comments
 (0)