mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Fix comment.
Previous commit was confused about the case we're handling: actually, what the patch is dealing with is platforms that have optreset, *and* have <getopt.h>, but the latter fails to declare the former. Because we use a linking probe to set HAVE_INT_OPTRESET, we need to be sure we have a declaration even if <getopt.h> doesn't think it exists.
This commit is contained in:
@ -32,8 +32,8 @@ extern int optopt;
|
|||||||
#endif /* HAVE_GETOPT_H */
|
#endif /* HAVE_GETOPT_H */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some platforms have optreset but not <getopt.h>. Cygwin, however,
|
* Some platforms have optreset but fail to declare it in <getopt.h>, so cope.
|
||||||
* doesn't like this either.
|
* Cygwin, however, doesn't like this either.
|
||||||
*/
|
*/
|
||||||
#if defined(HAVE_INT_OPTRESET) && !defined(__CYGWIN__)
|
#if defined(HAVE_INT_OPTRESET) && !defined(__CYGWIN__)
|
||||||
extern int optreset;
|
extern int optreset;
|
||||||
|
Reference in New Issue
Block a user