Mark PostmasterPid as PGDLLIMPORT.
authorRobert Haas <rhaas@postgresql.org>
Fri, 3 Jun 2016 17:50:51 +0000 (13:50 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 3 Jun 2016 18:06:35 +0000 (14:06 -0400)
This is so that extensions can use it.

Michael Paquier

src/include/miscadmin.h

index 356fcc6edac76a3233e145ff1caca3e636666e32..78545daecec2ba030eca4c35636e5ceb757166d4 100644 (file)
@@ -143,7 +143,7 @@ do { \
 /*
  * from utils/init/globals.c
  */
-extern pid_t PostmasterPid;
+extern PGDLLIMPORT pid_t PostmasterPid;
 extern bool IsPostmasterEnvironment;
 extern PGDLLIMPORT bool IsUnderPostmaster;
 extern bool IsBackgroundWorker;