aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-05-08 12:42:56 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-05-08 12:42:56 -0400
commit1e81f8462aceb07d520daaabdc999b879381bd12 (patch)
treee9369a9a25ba3f4847abe9e8906e6394591c4067 /src
parent0c15a524c532c1006a7bd36d3a680f8e8b8db9fc (diff)
downloadpostgresql-1e81f8462aceb07d520daaabdc999b879381bd12.tar.gz
postgresql-1e81f8462aceb07d520daaabdc999b879381bd12.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/include/pg_getopt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/pg_getopt.h b/src/include/pg_getopt.h
index 0b38404ed3b..531c265f7cd 100644
--- a/src/include/pg_getopt.h
+++ b/src/include/pg_getopt.h
@@ -32,8 +32,8 @@ extern int optopt;
#endif /* HAVE_GETOPT_H */
/*
- * Some platforms have optreset but not <getopt.h>. Cygwin, however,
- * doesn't like this either.
+ * Some platforms have optreset but fail to declare it in <getopt.h>, so cope.
+ * Cygwin, however, doesn't like this either.
*/
#if defined(HAVE_INT_OPTRESET) && !defined(__CYGWIN__)
extern int optreset;