gioser

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1543Shell 203Rust 109Markdown 993728 Sutichaykuna

⎇ 7b0ad7805dbe7caa2ddac172a52a7e5e13deee61 recipes/gcc15.patch 44 siq'ikuna · 1.5 KB Ñawpa willay ch'uya

Etapa G: tanda C tier-2 construye+corre — 6 al corpus (45->51) + wrap abuild local 89061cac0 · sergio ·

1Patch-Source: https://lists.gnu.org/archive/html/which-bugs/2025-03/msg00000.html
2---
3From 16a1647fc26953fab659de5f55d4c0defdfb894f Mon Sep 17 00:00:00 2001
4From: Khem Raj <raj.khem@gmail.com>
5Date: Sat, 22 Mar 2025 17:56:19 -0700
6Subject: [PATCH] getopt: Fix signature of getenv function
7
8This happens on musl systems using GCC 15
9
10../which-2.21/getopt.h:106:12: error: conflicting types for 'getopt'; have 
11'int(void)'
12  106 | extern int getopt ();
13      |            ^~~~~~
14---
15 getopt.c | 2 +-
16 getopt.h | 2 +-
17 2 files changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/getopt.c b/getopt.c
20index 9ac2ed6..7e14270 100644
21--- a/getopt.c
22+++ b/getopt.c
23@@ -205,7 +205,7 @@ static char *posixly_correct;
24 /* Avoid depending on library functions or files
25    whose names are inconsistent.  */
26 
27-char *getenv();
28+char *getenv(const char*);
29 
30 static char *my_index(str, chr) const char *str;
31 int chr;
32diff --git a/getopt.h b/getopt.h
33index f080053..635fc46 100644
34--- a/getopt.h
35+++ b/getopt.h
36@@ -102,7 +102,7 @@ struct option {
37    errors, only prototype getopt for the GNU C library.  */
38 extern int getopt(int argc, char *const *argv, const char *shortopts);
39 #else  /* not __GNU_LIBRARY__ */
40-extern int getopt();
41+extern int getopt(int, char * const [], const char *);
42 #endif /* __GNU_LIBRARY__ */
43 extern int getopt_long(int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind);
44 extern int getopt_long_only(int argc, char *const *argv, const char *shortopts, const struct option *longopts,