Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijzzE-0004OJ-AQ for pgsql-committers@arkaria.postgresql.org; Wed, 25 Dec 2019 06:17:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijzzC-0002e0-89 for pgsql-committers@arkaria.postgresql.org; Wed, 25 Dec 2019 06:17:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijzzB-0002dt-T3 for pgsql-committers@lists.postgresql.org; Wed, 25 Dec 2019 06:17:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ijzz5-0002qw-Av for pgsql-committers@lists.postgresql.org; Wed, 25 Dec 2019 06:17:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id xBP6HMYK017754; Wed, 25 Dec 2019 01:17:22 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix compiler warning for ppoll() on Cygwin In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Sun, 22 Dec 2019 22:21:53 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17752.1577254642.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Dec 2019 01:17:22 -0500 Message-ID: <17753.1577254642@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > Fix compiler warning for ppoll() on Cygwin > _GNU_SOURCE is required to get the prototype, so just define that > globally, as was already done in the linux template. This seems to have broken lorikeet: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dlorikeet&dt=3D20= 19-12-23%2006%3A38%3A29 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D pgsql.build/src/tes= t/regress/regression.diffs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D diff -U3 /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/expected= /create_function_1.out /home/andrew/bf64/root/HEAD/pgsql.build/src/test/re= gress/results/create_function_1.out --- /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/expected/crea= te_function_1.out 2019-12-23 01:54:52.899453200 -0500 +++ /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/results/creat= e_function_1.out 2019-12-23 01:55:58.318974000 -0500 @@ -90,7 +90,7 @@ ERROR: only one AS item needed for language "sql" CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C AS 'nosuchfile'; -ERROR: could not access file "nosuchfile": No such file or directory +ERROR: could not access file "nosuchfile": ENOENT CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C AS '/home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/regress.= dll', 'nosuchsymbol'; ERROR: could not find function "nosuchsymbol" in file "/home/andrew/bf64= /root/HEAD/pgsql.build/src/test/regress/regress.dll" I'm guessing that this broke something in the #ifdef nest in gnuish_strerror_r(), causing it to fail, causing pg_strerror_r() to fall back to using get_errno_symbol(). regards, tom lane