mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-25 03:12:08 +01:00
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
diff --git a/getopt/getopt.c b/getopt/getopt.c
|
|
index a59a013..e8badb6 100644
|
|
--- a/getopt/getopt.c
|
|
+++ b/getopt/getopt.c
|
|
@@ -73,6 +73,7 @@ char *alloca ();
|
|
#include <stdlib.h>
|
|
#else /* Not GNU C library. */
|
|
#define __alloca alloca
|
|
+#include <stdlib.h>
|
|
#endif /* GNU C library. */
|
|
|
|
/* If GETOPT_COMPAT is defined, `+' as well as `--' can introduce a
|
|
@@ -186,8 +187,6 @@ static enum
|
|
/* Avoid depending on library functions or files
|
|
whose names are inconsistent. */
|
|
|
|
-char *getenv ();
|
|
-
|
|
static char *
|
|
my_index (str, chr)
|
|
const char *str;
|
|
diff --git a/getopt/getopt.h b/getopt/getopt.h
|
|
index 45541f5..f0a7a78 100644
|
|
--- a/getopt/getopt.h
|
|
+++ b/getopt/getopt.h
|
|
@@ -101,7 +101,7 @@ struct option
|
|
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 ();
|
|
+extern int getopt (int argc, char *const *argv, const char *shortopts);
|
|
#endif /* not __GNU_LIBRARY__ */
|
|
extern int getopt_long (int argc, char *const *argv, const char *shortopts,
|
|
const struct option *longopts, int *longind);
|