mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add some missing PGDLLIMPORT markings
Three variables in pqsignal.h (UnBlockSig, BlockSig and StartupBlockSig) were not marked with PGDLLIMPORT, as they are declared in a way that prevents mark_pgdllimport.pl to detect them. These variables are redefined in a style more consistent with the other headers, allowing the script to find and mark them. PGDLLIMPORT was missing for __pg_log_level in logging.h, so add it back. The marking got accidentally removed in9a374b77
, just after its addition in8ec5694
. While on it, add a comment in mark_pgdllimport.pl explaining what are the arguments needed by the script (aka a list of header paths). Reported-by: Andres Freund Discussion: https://postgr.es/m/20220506234924.6mxxotl3xl63db3l@alap3.anarazel.de
This commit is contained in:
@ -51,7 +51,7 @@ enum pg_log_level
|
|||||||
/*
|
/*
|
||||||
* __pg_log_level is the minimum log level that will actually be shown.
|
* __pg_log_level is the minimum log level that will actually be shown.
|
||||||
*/
|
*/
|
||||||
extern enum pg_log_level __pg_log_level;
|
extern PGDLLIMPORT enum pg_log_level __pg_log_level;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A log message can have several parts. The primary message is required,
|
* A log message can have several parts. The primary message is required,
|
||||||
|
@ -30,9 +30,9 @@ extern int pqsigsetmask(int mask);
|
|||||||
#define sigdelset(set, signum) (*(set) &= ~(sigmask(signum)))
|
#define sigdelset(set, signum) (*(set) &= ~(sigmask(signum)))
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
||||||
extern sigset_t UnBlockSig,
|
extern PGDLLIMPORT sigset_t UnBlockSig;
|
||||||
BlockSig,
|
extern PGDLLIMPORT sigset_t BlockSig;
|
||||||
StartupBlockSig;
|
extern PGDLLIMPORT sigset_t StartupBlockSig;
|
||||||
|
|
||||||
extern void pqinitmask(void);
|
extern void pqinitmask(void);
|
||||||
|
|
||||||
|
@ -12,7 +12,8 @@
|
|||||||
# smart and may not catch all cases.
|
# smart and may not catch all cases.
|
||||||
#
|
#
|
||||||
# It's probably a good idea to run pgindent on any files that this
|
# It's probably a good idea to run pgindent on any files that this
|
||||||
# script modifies before committing.
|
# script modifies before committing. This script uses as arguments
|
||||||
|
# a list of the header files to scan for the markings.
|
||||||
#
|
#
|
||||||
# Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
# Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
||||||
# Portions Copyright (c) 1994, Regents of the University of California
|
# Portions Copyright (c) 1994, Regents of the University of California
|
||||||
|
Reference in New Issue
Block a user