000-getopt-prototype.patch 663 B

123456789101112131415161718
  1. --- a/h/getopt.h
  2. +++ b/h/getopt.h
  3. @@ -135,15 +135,7 @@ struct option
  4. arguments to the option '\0'. This behavior is specific to the GNU
  5. `getopt'. */
  6. -#ifdef __GNU_LIBRARY__
  7. -/* Many other libraries have conflicting prototypes for getopt, with
  8. - differences in the consts, in stdlib.h. To avoid compilation
  9. - errors, only prototype getopt for the GNU C library. */
  10. extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
  11. -#else /* not __GNU_LIBRARY__ */
  12. -extern int getopt ();
  13. -#endif /* __GNU_LIBRARY__ */
  14. -
  15. #ifndef __need_getopt
  16. extern int getopt_long (int ___argc, char *const *___argv,
  17. const char *__shortopts,