f4b2292754
* Use __fstat50 etc instead of fstat etc on NetBSD. Based on martin@'s patch for firefox 27.0. Restore session is recovered on NetBSD/amd64.
15 lines
803 B
JavaScript
15 lines
803 B
JavaScript
$NetBSD: patch-toolkit_components_osfile_osfile__unix__front.jsm,v 1.1 2013/11/08 12:51:25 ryoon Exp $
|
|
|
|
* Use off_t for st_size
|
|
|
|
--- toolkit/components/osfile/osfile_unix_front.jsm.orig 2013-10-22 06:19:20.000000000 +0000
|
|
+++ toolkit/components/osfile/osfile_unix_front.jsm
|
|
@@ -721,7 +721,7 @@
|
|
File.Info = function Info(stat) {
|
|
let isDir = (stat.st_mode & OS.Constants.libc.S_IFMT) == OS.Constants.libc.S_IFDIR;
|
|
let isSymLink = (stat.st_mode & OS.Constants.libc.S_IFMT) == OS.Constants.libc.S_IFLNK;
|
|
- let size = exports.OS.Shared.Type.size_t.importFromC(stat.st_size);
|
|
+ let size = exports.OS.Shared.Type.off_t.importFromC(stat.st_size);
|
|
|
|
let lastAccessDate = new Date(stat.st_atime * 1000);
|
|
let lastModificationDate = new Date(stat.st_mtime * 1000);
|