Nano: error: no member named 'st_mtim' in 'struct stat'

0

I am tying to install nano v4.6 on my macBook 10.15 and when i run "make", I am receiving the following output:

text.c:2529:33: error: no member named 'st_mtim' in 'struct stat'
    timestamp_sec = (long)fileinfo.st_mtim.tv_sec;
                          ~~~~~~~~ ^
text.c:2530:34: error: no member named 'st_mtim' in 'struct stat'
    timestamp_nsec = (long)fileinfo.st_mtim.tv_nsec;
                           ~~~~~~~~ ^
text.c:2570:21: error: no member named 'st_mtim' in 'struct stat'
    if ((long)fileinfo.st_mtim.tv_sec == timestamp_sec &&
              ~~~~~~~~ ^
text.c:2571:20: error: no member named 'st_mtim' in 'struct stat'
                            (long)fileinfo.st_mtim.tv_nsec == timestamp_nsec) {
                                  ~~~~~~~~ ^
4 errors generated.
make[2]: *** [text.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I have no idea how to resolve this issue. any advice will be appreciated.

Hudi Ilfeld

Posted 2019-12-20T10:36:44.607

Reputation: 101

No answers