Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVKzB-0000Tj-66 for pgsql-committers@arkaria.postgresql.org; Tue, 19 Jun 2018 18:04:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVKz9-0001Ko-8B for pgsql-committers@arkaria.postgresql.org; Tue, 19 Jun 2018 18:04:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVKz7-0001Kf-3m for pgsql-committers@lists.postgresql.org; Tue, 19 Jun 2018 18:04:07 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVKz3-0008K9-9i for pgsql-committers@lists.postgresql.org; Tue, 19 Jun 2018 18:04:03 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B810E21E54; Tue, 19 Jun 2018 14:03:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 19 Jun 2018 14:03:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=LQgu/CNh6pWoGb7lj19sS5XaL93GWFGrrF+XGPKmlqg=; b=oLOTevt2 /e2z1xDlMwyCSvKuKgVHUmb/p6m8983dkPGrno6duO4s9gfyELmdbfrL3cbRwbVQ 07G7sCerRlv2hOz2QzI9mKxKraBpSaqnzjl34ENAJZwzVuYqCtvLtGCHkVTufupD UDL3veamNGTRmlHOWja07c3UZ6BlBSGMkGoFQdju2Gl6s0U15ZzxXlTS8vTo0v8X qLGfFljTisOKA7HT/KWt95bEgowK8D5yeVGFQ0Ei1PY+SjXy7zRehCcrx0/cZ5Xm ryrIoU8nC856Xwz3Xd8L97s8jyrrN+SfBcb2Qff7MtHnma1p+tlf6CmWB0mGLhhj EK8+X/J7CZDVPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=LQgu/CNh6pWoGb7lj19sS5XaL93GW FGrrF+XGPKmlqg=; b=pZsVxMBilnAbtlenckVLpyIVYrykRjY7HtatUmoWuMWl5 PpaaaqZ6rTnSUU+hdTV8wuvMVzzy8P13d8swqzu6FG5ms6u6Igiw4J3TE2Ve4P/C PGq23r0N4GC13Q+eVR3LeQ0B4r5tx6nqaKxwt+guOVw3CGIEuZSTW/qTB6i6PWpL W00rW0X1fE0I4Orxt5PwbW6oN6GhoB+NuSnr58PebJ5JddLa5wH+58YkaRKCt9eO ucCDOkI4f+hIq8GloPwiZSb0wpIO1MhaeIk5TohHfVEYylKdVSi29Hsfh9S9t3Z/ kXh3G37gnGqe1zwH3ta9l2ZLvH5rUIlccW1KHM9cw== X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 407A6E46C1; Tue, 19 Jun 2018 14:03:59 -0400 (EDT) Date: Tue, 19 Jun 2018 11:03:57 -0700 From: Andres Freund To: Bruce Momjian Cc: Stephen Frost , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix for globals.c- c.h must come first Message-ID: <20180619180357.k7c6c47dptva2vsp@alap3.anarazel.de> References: <20180619175834.GE3637@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180619175834.GE3637@momjian.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-06-19 13:58:34 -0400, Bruce Momjian wrote: > On Sat, May 19, 2018 at 01:20:47AM +0000, Stephen Frost wrote: > > Fix for globals.c- c.h must come first > > > > Commit da9b580 mistakenly put a system header before postgres.h (which > > includes c.h). That can cause portability issues and broke (at least) > > builds with older Windows compilers. > > I assume there is no way to add defined and checks to globals.c and c.h > to cause a compile error when this happens. I don't see how to do so in a form that's even halfway portable. Just to be clear: There's nothing globals.c specific about the rule to always include postgres.h first. Greetings, Andres Freund