Skip to content

Commit 768ceee

Browse files
committed
Add missing PGDLLIMPORT markings
All backend-side variables should be marked with PGDLLIMPORT, as per policy introduced in 8ec5694. aafc05d has forgotten MyClientSocket, and 05c3980 LoadedSSL. These can be spotted with a command like this one (be careful of not switching __pg_log_level): src/tools/mark_pgdllimport.pl $(git ls-files src/include/) Reported-by: Peter Eisentraut Discussion: https://postgr.es/m/ZhzkRzrkKhbeQMRm@paquier.xyz
1 parent 09d9800 commit 768ceee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/include/postmaster/postmaster.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extern PGDLLIMPORT int postmaster_alive_fds[2];
5252

5353
extern PGDLLIMPORT const char *progname;
5454

55-
extern bool LoadedSSL;
55+
extern PGDLLIMPORT bool LoadedSSL;
5656

5757
extern void PostmasterMain(int argc, char *argv[]) pg_attribute_noreturn();
5858
extern void ClosePostmasterPorts(bool am_syslogger);
@@ -74,7 +74,7 @@ extern void pgwin32_register_deadchild_callback(HANDLE procHandle, DWORD procId)
7474
#endif
7575

7676
/* defined in globals.c */
77-
extern struct ClientSocket *MyClientSocket;
77+
extern PGDLLIMPORT struct ClientSocket *MyClientSocket;
7878

7979
/* prototypes for functions in launch_backend.c */
8080
extern pid_t postmaster_child_launch(BackendType child_type, char *startup_data, size_t startup_data_len, struct ClientSocket *sock);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy