mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 00:32:17 +01:00
40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
--- a/lib/fnmatch.c
|
|
+++ b/lib/fnmatch.c
|
|
@@ -121,7 +121,7 @@
|
|
whose names are inconsistent. */
|
|
|
|
# if !defined _LIBC && !defined getenv
|
|
-extern char *getenv ();
|
|
+extern char *getenv (const char *);
|
|
# endif
|
|
|
|
# ifndef errno
|
|
--- a/src/getopt.c
|
|
+++ b/src/getopt.c
|
|
@@ -202,7 +202,7 @@
|
|
whose names are inconsistent. */
|
|
|
|
#ifndef getenv
|
|
-extern char *getenv ();
|
|
+extern char *getenv (const char *);
|
|
#endif
|
|
|
|
static char *
|
|
--- a/src/getopt.h
|
|
+++ b/src/getopt.h
|
|
@@ -96,14 +96,10 @@
|
|
#define optional_argument 2
|
|
|
|
#if defined (__STDC__) && __STDC__
|
|
-#ifdef __GNU_LIBRARY__
|
|
/* Many other libraries have conflicting prototypes for getopt, with
|
|
differences in the consts, in stdlib.h. To avoid compilation
|
|
errors, only prototype getopt for the GNU C library. */
|
|
extern int getopt (int argc, char *const *argv, const char *shortopts);
|
|
-#else /* not __GNU_LIBRARY__ */
|
|
-extern int getopt ();
|
|
-#endif /* __GNU_LIBRARY__ */
|
|
extern int getopt_long (int argc, char *const *argv, const char *shortopts,
|
|
const struct option *longopts, int *longind);
|
|
extern int getopt_long_only (int argc, char *const *argv,
|