Skip to content

Commit 1e81f84

Browse files
committed
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.
1 parent 0c15a52 commit 1e81f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/pg_getopt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ extern int optopt;
3232
#endif /* HAVE_GETOPT_H */
3333

3434
/*
35-
* Some platforms have optreset but not <getopt.h>. Cygwin, however,
36-
* doesn't like this either.
35+
* Some platforms have optreset but fail to declare it in <getopt.h>, so cope.
36+
* Cygwin, however, doesn't like this either.
3737
*/
3838
#if defined(HAVE_INT_OPTRESET) && !defined(__CYGWIN__)
3939
extern int optreset;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy