--- a/pglogical_ticker.c
+++ b/pglogical_ticker.c
@@ -10,7 +10,11 @@
 /* These are always necessary for a bgworker */
 #include "miscadmin.h"
 #include "postmaster/bgworker.h"
+#if PG_VERSION_NUM >= 170000
+#include "storage/procnumber.h"
+#else
 #include "storage/backendid.h"
+#endif
 #include "storage/ipc.h"
 #include "storage/latch.h"
 #include "storage/lwlock.h"
@@ -34,8 +38,8 @@ PG_MODULE_MAGIC;
 
 PG_FUNCTION_INFO_V1(pglogical_ticker_launch);
 
-void		_PG_init(void);
-void		pglogical_ticker_main(Datum) pg_attribute_noreturn();
+PGDLLEXPORT void		_PG_init(void);
+PGDLLEXPORT void		pglogical_ticker_main(Datum) pg_attribute_noreturn();
 
 /* flags set by signal handlers */
 static volatile sig_atomic_t got_sighup = false;
