| 1 | Source: https://gitlab.com/ubports/development/core/click/-/commit/8f654978a12e6f9a0b6ff64296ec5565e3ff5cd0.patch
|
| 2 | --
|
| 3 | From 8f654978a12e6f9a0b6ff64296ec5565e3ff5cd0 Mon Sep 17 00:00:00 2001
|
| 4 | From: Ratchanan Srirattanamet <[email protected]>
|
| 5 | Date: Thu, 4 Apr 2024 01:46:32 +0700
|
| 6 | Subject: [PATCH] preload: fix -Wimplicit-function-declaration
|
| 7 |
|
| 8 | Copy the declarations of __fxstat{,64} from GLibC so that they're
|
| 9 | properly declared.
|
| 10 | ---
|
| 11 | preload/clickpreload.c | 4 ++++
|
| 12 | 1 file changed, 4 insertions(+)
|
| 13 |
|
| 14 | diff --git a/preload/clickpreload.c b/preload/clickpreload.c
|
| 15 | index 2799bff..ba6b9e7 100644
|
| 16 | |
| 17 | |
| 18 | @@ -439,6 +439,8 @@ int __xmknod (int ver, const char *pathname, mode_t mode, dev_t *dev)
|
| 19 | return (*libc___xmknod) (ver, pathname, mode, dev);
|
| 20 | }
|
| 21 |
|
| 22 | +extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf);
|
| 23 | +
|
| 24 | int __xstat (int ver, const char *pathname, struct stat *buf)
|
| 25 | {
|
| 26 | if (!libc___xstat)
|
| 27 | @@ -450,6 +452,8 @@ int __xstat (int ver, const char *pathname, struct stat *buf)
|
| 28 | return (*libc___xstat) (ver, pathname, buf);
|
| 29 | }
|
| 30 |
|
| 31 | +extern int __fxstat64 (int ver, int __fildes, struct stat64 *__stat_buf);
|
| 32 | +
|
| 33 | int __xstat64 (int ver, const char *pathname, struct stat64 *buf)
|
| 34 | {
|
| 35 | if (!libc___xstat64)
|
| 36 | --
|
| 37 | GitLab
|
| 38 |
|