| 1 | diff -ruN a/compat/getopt.c b/compat/getopt.c
|
| 2 | |
| 3 | |
| 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)
|
| 13 | diff -ruN a/compat/getopt.h b/compat/getopt.h
|
| 14 | |
| 15 | |
| 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);
|