projects/aports·blob master · refs

24 lines · 950 B

1diff -ruN a/compat/getopt.c b/compat/getopt.c
2--- a/compat/getopt.c 2025-09-10 00:44:17.560000000 +0000
3+++ b/compat/getopt.c 2025-09-10 01:22:33.360000000 +0000
4@@ -211,7 +211,7 @@
5 /* Avoid depending on library functions or files
6 whose names are inconsistent. */
7
8-char *getenv ();
9+char *getenv (const char *);
10
11 static char *
12 my_index (str, chr)
13diff -ruN a/compat/getopt.h b/compat/getopt.h
14--- a/compat/getopt.h 2011-10-30 16:48:42.000000000 +0000
15+++ b/compat/getopt.h 2025-09-10 01:21:26.450000000 +0000
16@@ -105,7 +105,7 @@
17 errors, only prototype getopt for the GNU C library. */
18 extern int getopt (int argc, char *const *argv, const char *shortopts);
19 #else /* not __GNU_LIBRARY__ */
20-extern int getopt ();
21+extern int getopt(int, char * const [], const char *);
22 #endif /* __GNU_LIBRARY__ */
23 extern int getopt_long (int argc, char *const *argv, const char *shortopts,
24 const struct option *longopts, int *longind);