Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5304fec

Browse files
committed
Apply PGDLLIMPORT markings to some GUC variables
According to the commit message in 8ec5694, we must have all variables in header files marked with PGDLLIMPORT. In commit d3cc5ff 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
1 parent c8e2d42 commit 5304fec

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/include/postmaster/syslogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extern PGDLLIMPORT bool Log_truncate_on_rotation;
7676
extern PGDLLIMPORT int Log_file_mode;
7777

7878
#ifdef EXEC_BACKEND
79-
extern pg_time_t first_syslogger_file_time;
79+
extern PGDLLIMPORT pg_time_t first_syslogger_file_time;
8080
#endif
8181

8282
#ifndef WIN32

src/include/storage/pmsignal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ typedef enum
5858
typedef struct PMSignalData PMSignalData;
5959

6060
#ifdef EXEC_BACKEND
61-
extern volatile PMSignalData *PMSignalState;
61+
extern PGDLLIMPORT volatile PMSignalData *PMSignalState;
6262
#endif
6363

6464
/*

src/include/storage/proc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ extern PGDLLIMPORT int IdleSessionTimeout;
454454
extern PGDLLIMPORT bool log_lock_waits;
455455

456456
#ifdef EXEC_BACKEND
457-
extern slock_t *ProcStructLock;
458-
extern PGPROC *AuxiliaryProcs;
457+
extern PGDLLIMPORT slock_t *ProcStructLock;
458+
extern PGDLLIMPORT PGPROC *AuxiliaryProcs;
459459
#endif
460460

461461

src/include/storage/procsignal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ extern void procsignal_sigusr1_handler(SIGNAL_ARGS);
7777
typedef struct ProcSignalHeader ProcSignalHeader;
7878

7979
#ifdef EXEC_BACKEND
80-
extern ProcSignalHeader *ProcSignal;
80+
extern PGDLLIMPORT ProcSignalHeader *ProcSignal;
8181
#endif
8282

8383
#endif /* PROCSIGNAL_H */

src/include/utils/guc.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,11 @@ extern PGDLLIMPORT bool optimize_bounded_sort;
312312
* that would then require including the definition of struct
313313
* config_enum_entry into those header files.)
314314
*/
315-
extern const struct config_enum_entry archive_mode_options[];
316-
extern const struct config_enum_entry dynamic_shared_memory_options[];
317-
extern const struct config_enum_entry recovery_target_action_options[];
318-
extern const struct config_enum_entry wal_level_options[];
319-
extern const struct config_enum_entry wal_sync_method_options[];
315+
extern PGDLLIMPORT const struct config_enum_entry archive_mode_options[];
316+
extern PGDLLIMPORT const struct config_enum_entry dynamic_shared_memory_options[];
317+
extern PGDLLIMPORT const struct config_enum_entry recovery_target_action_options[];
318+
extern PGDLLIMPORT const struct config_enum_entry wal_level_options[];
319+
extern PGDLLIMPORT const struct config_enum_entry wal_sync_method_options[];
320320

321321
/*
322322
* Functions exported by guc.c

0 commit comments

Comments
 (0)