From 14216649f3dc8bd9839702440dd593e958b0920b Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu, 21 Apr 2016 14:33:34 -0400
Subject: [PATCH] PGDLLIMPORT-ify old_snapshot_threshold.

Revert commit 7cb1db1d9599f0a09d6920d2149d956ef6d88b0e, which represented
a misunderstanding of the problem (if snapmgr.h weren't already included
in bufmgr.h, things wouldn't compile anywhere).  Instead install what
I think is the real fix.
---
 contrib/bloom/blscan.c      | 1 -
 src/include/utils/snapmgr.h | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/contrib/bloom/blscan.c b/contrib/bloom/blscan.c
index 12b15b69c9b..fc82f543738 100644
--- a/contrib/bloom/blscan.c
+++ b/contrib/bloom/blscan.c
@@ -19,7 +19,6 @@
 #include "storage/lmgr.h"
 #include "utils/memutils.h"
 #include "utils/rel.h"
-#include "utils/snapmgr.h"
 
 #include "bloom.h"
 
diff --git a/src/include/utils/snapmgr.h b/src/include/utils/snapmgr.h
index 371042a6077..6a80f0ba550 100644
--- a/src/include/utils/snapmgr.h
+++ b/src/include/utils/snapmgr.h
@@ -20,7 +20,7 @@
 
 
 /* GUC variables */
-extern int	old_snapshot_threshold;
+extern PGDLLIMPORT int old_snapshot_threshold;
 
 
 extern Size SnapMgrShmemSize(void);
-- 
GitLab