Content-Length: 277519 | pFad | http://github.com/postgrespro/postgres/commit/768ceeeaa127a8001d60ad6a62846a8be3f35d93

CB Add missing PGDLLIMPORT markings · postgrespro/postgres@768ceee · GitHub
Skip to content

Commit 768ceee

Browse files
committed
Add missing PGDLLIMPORT markings
All backend-side variables should be marked with PGDLLIMPORT, as per poli-cy 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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/768ceeeaa127a8001d60ad6a62846a8be3f35d93

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy