]> granicus.if.org Git - postgresql/commitdiff
Fix comment.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 May 2014 16:42:56 +0000 (12:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 May 2014 16:42:56 +0000 (12:42 -0400)
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.

src/include/pg_getopt.h

index 0b38404ed3b8a8277b791b75f90eb44e340a8c2c..531c265f7cd88cfbc2193238cd9628a6b776e660 100644 (file)
@@ -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;