summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch55
1 files changed, 0 insertions, 55 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch b/meta/recipes-devtools/binutils/binutils/0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch
deleted file mode 100644
index 3bb083819b..0000000000
--- a/meta/recipes-devtools/binutils/binutils/0015-gprofng-Fix-build-with-64bit-file-offset-on-32bit-ma.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1From 15936ae7cdfd6814654eff367b5cfb2565ea6af8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 31 Jul 2023 15:23:38 -0700
4Subject: [PATCH] gprofng: Fix build with 64bit file offset on 32bit machines
5
6gprofng/ChangeLog
72023-07-31 Khem Raj <raj.khem@gmail.com>
8
9* libcollector/iotrace.c: Define open64, fgetpos64, and fsetpos64
10 only when __USE_LARGEFILE64 and __USE_FILE_OFFSET64 are not
11 defined.
12
13Upstream-Status: Submitted [https://sourceware.org/pipermail/binutils/2023-July/128741.html]
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 gprofng/libcollector/iotrace.c | 9 ++++++---
17 1 file changed, 6 insertions(+), 3 deletions(-)
18
19diff --git a/gprofng/libcollector/iotrace.c b/gprofng/libcollector/iotrace.c
20index c0ea7497b09..81c844048d9 100644
21--- a/gprofng/libcollector/iotrace.c
22+++ b/gprofng/libcollector/iotrace.c
23@@ -1030,8 +1030,9 @@ gprofng_open64 (int(real_open64) (const char *, int, ...),
24 }
25
26 DCL_FUNC_VER (DCL_OPEN64, open64_2_2, open64@GLIBC_2.2)
27+#if !defined(__USE_LARGEFILE64)
28 DCL_OPEN64 (open64)
29-
30+#endif
31
32 #define F_ERROR_ARG 0
33 #define F_INT_ARG 1
34@@ -2989,8 +2990,9 @@ DCL_FUNC_VER (DCL_FGETPOS64, fgetpos64_2_17, fgetpos64@GLIBC_2.17)
35 DCL_FUNC_VER (DCL_FGETPOS64, fgetpos64_2_2_5, fgetpos64@GLIBC_2.2.5)
36 DCL_FUNC_VER (DCL_FGETPOS64, fgetpos64_2_2, fgetpos64@GLIBC_2.2)
37 DCL_FUNC_VER (DCL_FGETPOS64, fgetpos64_2_1, fgetpos64@GLIBC_2.1)
38+#if !defined(__USE_LARGEFILE64)
39 DCL_FGETPOS64 (fgetpos64)
40-
41+#endif
42 /*------------------------------------------------------------- fsetpos */
43 static int
44 gprofng_fsetpos (int(real_fsetpos) (FILE *, const fpos_t *),
45@@ -3087,8 +3089,9 @@ DCL_FUNC_VER (DCL_FSETPOS64, fsetpos64_2_17, fsetpos64@GLIBC_2.17)
46 DCL_FUNC_VER (DCL_FSETPOS64, fsetpos64_2_2_5, fsetpos64@GLIBC_2.2.5)
47 DCL_FUNC_VER (DCL_FSETPOS64, fsetpos64_2_2, fsetpos64@GLIBC_2.2)
48 DCL_FUNC_VER (DCL_FSETPOS64, fsetpos64_2_1, fsetpos64@GLIBC_2.1)
49+#if !defined(__USE_LARGEFILE64)
50 DCL_FSETPOS64 (fsetpos64)
51-
52+#endif
53 /*------------------------------------------------------------- fsync */
54 int
55 fsync (int fildes)