From: Stephen Frost Date: Sat, 19 May 2018 01:20:27 +0000 (-0400) Subject: Fix for globals.c- c.h must come first X-Git-Tag: REL_11_BETA1~19 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=e2b83ff556deb9a0001bdf6b511f8cfc9189ac10;p=postgresql.git 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. Discovered by Mark Dilger. Discussion: https://postgr.es/m/BF04A27A-D132-4927-A80A-BAD18695E954@gmail.com --- diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c index 0a3163398f3..36ffd874a40 100644 --- a/src/backend/utils/init/globals.c +++ b/src/backend/utils/init/globals.c @@ -16,10 +16,10 @@ * *------------------------------------------------------------------------- */ -#include - #include "postgres.h" +#include + #include "common/file_perm.h" #include "libpq/libpq-be.h" #include "libpq/pqcomm.h"