git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0c15a52)
Fix comment.
Thu, 8 May 2014 16:42:56 +0000 (12:42 -0400)
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.


diff --git a/src/include/pg_getopt.h b/src/include/pg_getopt.h
index 0b38404ed3b8a8277b791b75f90eb44e340a8c2c..531c265f7cd88cfbc2193238cd9628a6b776e660 100644 (file)
--- 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;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /