Mark SessionReplicationRole as PGDLLIMPORT so it
authorMagnus Hagander <[email protected]>
Fri, 19 Sep 2008 14:43:47 +0000 (14:43 +0000)
committerMagnus Hagander <[email protected]>
Fri, 19 Sep 2008 14:43:47 +0000 (14:43 +0000)
can be used from Slony functions.

Per report from Hiroshi Saito.

src/include/commands/trigger.h

index 7fdf2ee6b2ef39e0fb3f1d9e671203f8647280c1..3820a4e04392806ad936f57c4bfad06ffa0a558b 100644 (file)
@@ -84,7 +84,7 @@ typedef struct TriggerData
 #define SESSION_REPLICATION_ROLE_ORIGIN                0
 #define SESSION_REPLICATION_ROLE_REPLICA       1
 #define SESSION_REPLICATION_ROLE_LOCAL         2
-extern int     SessionReplicationRole;
+extern PGDLLIMPORT int SessionReplicationRole;
 
 #define TRIGGER_FIRES_ON_ORIGIN                                'O'
 #define TRIGGER_FIRES_ALWAYS                           'A'