projects/aports·blob master · refs

38 lines · 1.3 KiB

1Source: https://gitlab.com/ubports/development/core/click/-/commit/8f654978a12e6f9a0b6ff64296ec5565e3ff5cd0.patch
2--
3From 8f654978a12e6f9a0b6ff64296ec5565e3ff5cd0 Mon Sep 17 00:00:00 2001
4From: Ratchanan Srirattanamet <[email protected]>
5Date: Thu, 4 Apr 2024 01:46:32 +0700
6Subject: [PATCH] preload: fix -Wimplicit-function-declaration
7
8Copy the declarations of __fxstat{,64} from GLibC so that they're
9properly declared.
10---
11 preload/clickpreload.c | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/preload/clickpreload.c b/preload/clickpreload.c
15index 2799bff..ba6b9e7 100644
16--- a/preload/clickpreload.c
17+++ b/preload/clickpreload.c
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--
37GitLab
38