mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
fix darwin build
This commit is contained in:
parent
b20dcd268c
commit
187d5dfde9
@ -590,9 +590,13 @@ Java_java_io_File_lastModified(JNIEnv* e, jclass, jstring path)
|
||||
if (res == -1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return (static_cast<jlong>(fileStat.st_mtim.tv_sec) * 1000) +
|
||||
(static_cast<jlong>(fileStat.st_mtim.tv_nsec) / (1000*1000));
|
||||
# ifdef __APPLE__
|
||||
#define MTIME st_mtimespec
|
||||
# else
|
||||
#define MTIME st_mtim
|
||||
# endif
|
||||
return (static_cast<jlong>(fileStat.MTIME.tv_sec) * 1000) +
|
||||
(static_cast<jlong>(fileStat.MTIME.tv_nsec) / (1000*1000));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user