From 1e81f8462aceb07d520daaabdc999b879381bd12 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 8 May 2014 12:42:56 -0400 Subject: [PATCH] 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 , 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 doesn't think it exists. --- src/include/pg_getopt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/pg_getopt.h b/src/include/pg_getopt.h index 0b38404ed3..531c265f7c 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 . Cygwin, however, - * doesn't like this either. + * Some platforms have optreset but fail to declare it in , so cope. + * Cygwin, however, doesn't like this either. */ #if defined(HAVE_INT_OPTRESET) && !defined(__CYGWIN__) extern int optreset; -- 2.39.5