File: Glibc-needs-a-constant-to-be-defined-for-puts-to-work.patch

package info (click to toggle)
libcap2 1%3A2.75-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,068 kB
  • sloc: ansic: 9,181; sh: 1,138; makefile: 812; cpp: 45; asm: 16
file content (33 lines) | stat: -rw-r--r-- 993 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: "Andrew G. Morgan" <morgan@kernel.org>
Date: Sat, 22 Mar 2025 09:49:50 -0700
Subject: Glibc needs a constant to be defined for puts() to work.

See https://bugzilla.kernel.org/show_bug.cgi?id=219880

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
---
 libcap/execable.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/libcap/execable.h b/libcap/execable.h
index 89e61a3..a68ea24 100644
--- a/libcap/execable.h
+++ b/libcap/execable.h
@@ -23,6 +23,17 @@
 #endif
 #define __EXECABLE_H
 
+#ifdef __GLIBC__
+/*
+ * https://bugzilla.kernel.org/show_bug.cgi?id=219880 So far as I can
+ * tell this value is some legacy magic meaning, but is a detail no
+ * longer important to glibc. Only the existence of this constant in
+ * the linkage is needed.
+ */
+extern const int _IO_stdin_used;
+const int _IO_stdin_used __attribute__((weak)) = 131073;
+#endif /* def __GLIBC__ */
+
 const char __execable_dl_loader[] __attribute((section(".interp"))) =
     SHARED_LOADER ;