Fix for globals.c- c.h must come first
authorStephen Frost <[email protected]>
Sat, 19 May 2018 01:20:27 +0000 (21:20 -0400)
committerStephen Frost <[email protected]>
Sat, 19 May 2018 01:20:27 +0000 (21:20 -0400)
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

src/backend/utils/init/globals.c

index 0a3163398f3f2fb9f7ff864dde85f52556fa4bec..36ffd874a404f3dc6b380ba04ac5654ac28038d7 100644 (file)
  *
  *-------------------------------------------------------------------------
  */
-#include <sys/stat.h>
-
 #include "postgres.h"
 
+#include <sys/stat.h>
+
 #include "common/file_perm.h"
 #include "libpq/libpq-be.h"
 #include "libpq/pqcomm.h"