All backend-side variables should be marked with PGDLLIMPORT, as per
policy introduced in
8ec569479f.
aafc05de1bf5 has forgotten
MyClientSocket, and
05c3980e7f47 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/
[email protected]
extern PGDLLIMPORT const char *progname;
-extern bool LoadedSSL;
+extern PGDLLIMPORT bool LoadedSSL;
extern void PostmasterMain(int argc, char *argv[]) pg_attribute_noreturn();
extern void ClosePostmasterPorts(bool am_syslogger);
#endif
/* defined in globals.c */
-extern struct ClientSocket *MyClientSocket;
+extern PGDLLIMPORT struct ClientSocket *MyClientSocket;
/* prototypes for functions in launch_backend.c */
extern pid_t postmaster_child_launch(BackendType child_type, char *startup_data, size_t startup_data_len, struct ClientSocket *sock);