| 1 | From b09f3e1caaf774bd71d89b95a7eaa81a96c11f1d Mon Sep 17 00:00:00 2001
|
| 2 | From: psykose <[email protected]>
|
| 3 | Date: Sat, 8 Jul 2023 01:42:32 +0000
|
| 4 | Subject: [PATCH] lfs64.patch
|
| 5 |
|
| 6 | force stat() instead of stat64() on 32-bit
|
| 7 | ---
|
| 8 | mozglue/baseprofiler/core/shared-libraries-linux.cc | 2 +-
|
| 9 | security/sandbox/linux/broker/SandboxBrokerUtils.h | 2 +-
|
| 10 | xpcom/io/nsLocalFileUnix.h | 2 +-
|
| 11 | 3 files changed, 3 insertions(+), 3 deletions(-)
|
| 12 |
|
| 13 | diff --git a/mozglue/baseprofiler/core/shared-libraries-linux.cc b/mozglue/baseprofiler/core/shared-libraries-linux.cc
|
| 14 | index 4704d7e7b7c04..5e5f300166f5f 100644
|
| 15 | |
| 16 | |
| 17 | @@ -177,7 +177,7 @@ class MemoryMappedFile {
|
| 18 | return false;
|
| 19 | }
|
| 20 |
|
| 21 | -#if defined(__x86_64__) || defined(__aarch64__) || \
|
| 22 | +#if 1 || defined(__x86_64__) || defined(__aarch64__) || \
|
| 23 | (defined(__mips__) && _MIPS_SIM == _ABI64) || \
|
| 24 | !(defined(GP_OS_linux) || defined(GP_OS_android))
|
| 25 |
|
| 26 | diff --git a/security/sandbox/linux/broker/SandboxBrokerUtils.h b/security/sandbox/linux/broker/SandboxBrokerUtils.h
|
| 27 | index 01d272441d7b5..4803f8d062d5d 100644
|
| 28 | |
| 29 | |
| 30 | @@ -14,7 +14,7 @@
|
| 31 | // calls. We'll intercept those and handle them in the stat functions
|
| 32 | // but must be sure to use the right structure layout.
|
| 33 |
|
| 34 | -#if defined(__NR_stat64) || defined(__NR_fstatat64)
|
| 35 | +#if 0 && (defined(__NR_stat64) || defined(__NR_fstatat64) )
|
| 36 | typedef struct stat64 statstruct;
|
| 37 | # define statsyscall stat64
|
| 38 | # define lstatsyscall lstat64
|
| 39 | diff --git a/xpcom/io/nsLocalFileUnix.h b/xpcom/io/nsLocalFileUnix.h
|
| 40 | index bbd68e69a02a0..2713a61f244c5 100644
|
| 41 | |
| 42 | |
| 43 | @@ -22,7 +22,7 @@
|
| 44 |
|
| 45 | // stat64 and lstat64 are deprecated on OS X. Normal stat and lstat are
|
| 46 | // 64-bit by default on OS X 10.6+.
|
| 47 | -#if defined(HAVE_STAT64) && defined(HAVE_LSTAT64) && !defined(XP_DARWIN)
|
| 48 | +#if 0 && defined(HAVE_STAT64) && defined(HAVE_LSTAT64) && !defined(XP_DARWIN)
|
| 49 | # define STAT stat64
|
| 50 | # define LSTAT lstat64
|
| 51 | # define HAVE_STATS64 1
|
| 52 | --
|
| 53 | 2.56.0
|
| 54 |
|