aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-08-14 11:36:12 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-08-14 11:36:12 +0200
commit5304fec4d8a141abe6f8f6f2a6862822ec1f3598 (patch)
treebe9d3802fe3eb7e3fa2a3226bd272fa0e3f6c97d /src
parentc8e2d422fd556292ab751392bf76f713fe9e9fc1 (diff)
downloadpostgresql-5304fec4d8a141abe6f8f6f2a6862822ec1f3598.tar.gz
postgresql-5304fec4d8a141abe6f8f6f2a6862822ec1f3598.zip
Apply PGDLLIMPORT markings to some GUC variables
According to the commit message in 8ec569479, we must have all variables in header files marked with PGDLLIMPORT. In commit d3cc5ffe81f6 some variables were moved from launch_backend.c file to several header files. This adds PGDLLIMPORT to moved variables. Author: Sofia Kopikova <s.kopikova@postgrespro.ru> Reviewed-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/e0b17014-5319-4dd6-91cd-93d9c8fc9539%40postgrespro.ru
Diffstat (limited to 'src')
-rw-r--r--src/include/postmaster/syslogger.h2
-rw-r--r--src/include/storage/pmsignal.h2
-rw-r--r--src/include/storage/proc.h4
-rw-r--r--src/include/storage/procsignal.h2
-rw-r--r--src/include/utils/guc.h10
5 files changed, 10 insertions, 10 deletions
diff --git a/src/include/postmaster/syslogger.h b/src/include/postmaster/syslogger.h
index b5fc239ba9c..94ea263f2bf 100644
--- a/src/include/postmaster/syslogger.h
+++ b/src/include/postmaster/syslogger.h
@@ -76,7 +76,7 @@ extern PGDLLIMPORT bool Log_truncate_on_rotation;
extern PGDLLIMPORT int Log_file_mode;
#ifdef EXEC_BACKEND
-extern pg_time_t first_syslogger_file_time;
+extern PGDLLIMPORT pg_time_t first_syslogger_file_time;
#endif
#ifndef WIN32
diff --git a/src/include/storage/pmsignal.h b/src/include/storage/pmsignal.h
index 0c9a7e32a8a..87ac91848bc 100644
--- a/src/include/storage/pmsignal.h
+++ b/src/include/storage/pmsignal.h
@@ -58,7 +58,7 @@ typedef enum
typedef struct PMSignalData PMSignalData;
#ifdef EXEC_BACKEND
-extern volatile PMSignalData *PMSignalState;
+extern PGDLLIMPORT volatile PMSignalData *PMSignalState;
#endif
/*
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h
index bbd893a544e..deeb06c9e01 100644
--- a/src/include/storage/proc.h
+++ b/src/include/storage/proc.h
@@ -454,8 +454,8 @@ extern PGDLLIMPORT int IdleSessionTimeout;
extern PGDLLIMPORT bool log_lock_waits;
#ifdef EXEC_BACKEND
-extern slock_t *ProcStructLock;
-extern PGPROC *AuxiliaryProcs;
+extern PGDLLIMPORT slock_t *ProcStructLock;
+extern PGDLLIMPORT PGPROC *AuxiliaryProcs;
#endif
diff --git a/src/include/storage/procsignal.h b/src/include/storage/procsignal.h
index 2516869465d..f94c11a9a84 100644
--- a/src/include/storage/procsignal.h
+++ b/src/include/storage/procsignal.h
@@ -77,7 +77,7 @@ extern void procsignal_sigusr1_handler(SIGNAL_ARGS);
typedef struct ProcSignalHeader ProcSignalHeader;
#ifdef EXEC_BACKEND
-extern ProcSignalHeader *ProcSignal;
+extern PGDLLIMPORT ProcSignalHeader *ProcSignal;
#endif
#endif /* PROCSIGNAL_H */
diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h
index b80cf8e839a..840b0fe57ff 100644
--- a/src/include/utils/guc.h
+++ b/src/include/utils/guc.h
@@ -312,11 +312,11 @@ extern PGDLLIMPORT bool optimize_bounded_sort;
* that would then require including the definition of struct
* config_enum_entry into those header files.)
*/
-extern const struct config_enum_entry archive_mode_options[];
-extern const struct config_enum_entry dynamic_shared_memory_options[];
-extern const struct config_enum_entry recovery_target_action_options[];
-extern const struct config_enum_entry wal_level_options[];
-extern const struct config_enum_entry wal_sync_method_options[];
+extern PGDLLIMPORT const struct config_enum_entry archive_mode_options[];
+extern PGDLLIMPORT const struct config_enum_entry dynamic_shared_memory_options[];
+extern PGDLLIMPORT const struct config_enum_entry recovery_target_action_options[];
+extern PGDLLIMPORT const struct config_enum_entry wal_level_options[];
+extern PGDLLIMPORT const struct config_enum_entry wal_sync_method_options[];
/*
* Functions exported by guc.c