From 1cfa282f022d30b12f1ed7f9f3f8458e4067c3d4 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 22 Mar 1999 16:45:30 +0000 Subject: [PATCH] Hi, I have solved some problems with dynamic loading on NT. It is possible to run succesfully both trigger and plpgsql regression tests. The patch is in the included file "diff". Dan --- src/backend/tcop/postgres.c | 4 ++-- src/backend/utils/mmgr/mcxt.c | 2 +- src/include/utils/mcxt.h | 2 +- src/pl/plpgsql/src/pl_exec.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index b4fb2ef0fe..e3e537033f 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -142,7 +142,7 @@ jmp_buf Warn_restart; #define sigsetjmp(x,y) setjmp(x) #define siglongjmp longjmp #else -sigjmp_buf Warn_restart; +DLLIMPORT sigjmp_buf Warn_restart; #endif /* defined(nextstep) */ bool InError; @@ -1531,7 +1531,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[]) if (!IsUnderPostmaster) { puts("\nPOSTGRES backend interactive interface "); - puts("$Revision: 1.105 $ $Date: 1999/03/17 22:53:18 $\n"); + puts("$Revision: 1.106 $ $Date: 1999/03/22 16:45:27 $\n"); } /* ---------------- diff --git a/src/backend/utils/mmgr/mcxt.c b/src/backend/utils/mmgr/mcxt.c index b7813d11c7..5ac85a8e34 100644 --- a/src/backend/utils/mmgr/mcxt.c +++ b/src/backend/utils/mmgr/mcxt.c @@ -67,7 +67,7 @@ static OrderedSetData ActiveGlobalMemorySetData; /* uninitialized */ * CurrentMemoryContext * Memory context for general global allocations. */ -MemoryContext CurrentMemoryContext = NULL; +DLLIMPORT MemoryContext CurrentMemoryContext = NULL; /***************************************************************************** * PRIVATE DEFINITIONS * diff --git a/src/include/utils/mcxt.h b/src/include/utils/mcxt.h index 1dbb426f93..d622a6b015 100644 --- a/src/include/utils/mcxt.h +++ b/src/include/utils/mcxt.h @@ -22,7 +22,7 @@ typedef struct MemoryContextData *MemoryContext; typedef struct GlobalMemoryData *GlobalMemory; -extern MemoryContext CurrentMemoryContext; +extern DLLIMPORT MemoryContext CurrentMemoryContext; extern MemoryContext TopMemoryContext; diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index a8baa21d67..95d6526f04 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -75,7 +75,7 @@ #define siglongjmp longjmp #endif -extern sigjmp_buf Warn_restart; /* in tcop/postgres.c */ +extern DLLIMPORT sigjmp_buf Warn_restart; /* in tcop/postgres.c */ static PLpgSQL_function *error_info_func = NULL; static PLpgSQL_stmt *error_info_stmt = NULL; -- 2.39.5