Re: [PATCH] fix conflicting prototypes for getenv/getopt (v2 of Khem Raj's patch)
Paul Eggert <[email protected]> Sat, 18 Apr 2026 15:07:26 -0700
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Organization | UCLA Computer Science Department |
| Message-ID | <[email protected]> |
On 2026-04-18 01:45, Shubham Chakraborty wrote: > -extern int getopt (); > +extern int getopt (int argc, char *const *argv, const char *shortopts); > extern int getopt_long (); This is questionable, as getopt_long has parameters too. Instead, how about converting GNU 'make' to use Gnulib replacements for fnmatch and getopt? In the long run that'll be a better solution than this little tinkering, and it's long been on Paul's list of things to do. See his GNU 'make' commit f91b8bbb34ff210ad72bc529c9bd5c6102e27adc dated 2023-01-02.