MarDiehl / stdlib_os

MIT License
12 stars 2 forks source link

Fails to compile on macOS #4

Closed certik closed 3 years ago

certik commented 3 years ago

The error is:

/Users/runner/work/stdlib_os/stdlib_os/src/os_path.c:31:34: error: no member named 'st_atim' in 'struct stat'
  return st_xtime2double(statbuf.st_atim);
                         ~~~~~~~ ^
/Users/runner/work/stdlib_os/stdlib_os/src/os_path.c:42:34: error: no member named 'st_ctim' in 'struct stat'
  return st_xtime2double(statbuf.st_ctim);
                         ~~~~~~~ ^
/Users/runner/work/stdlib_os/stdlib_os/src/os_path.c:53:34: error: no member named 'st_mtim' in 'struct stat'
  return st_xtime2double(statbuf.st_mtim);
                         ~~~~~~~ ^
certik commented 3 years ago

Being fixed in #3.