Skip to content

Commit 5eeaf77

Browse files
committed
Added PGDLLIMPORT for two variables, used by pg_wait_sampling extension
1 parent 2f3e0eb commit 5eeaf77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/include/storage/pg_shmem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extern unsigned long UsedShmemSegID;
5757
#else
5858
extern HANDLE UsedShmemSegID;
5959
#endif
60-
extern void *UsedShmemSegAddr;
60+
extern PGDLLIMPORT void *UsedShmemSegAddr;
6161

6262
#ifdef EXEC_BACKEND
6363
extern void PGSharedMemoryReAttach(void);

src/include/storage/proc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ typedef struct PROC_HDR
244244
int startupBufferPinWaitBufId;
245245
} PROC_HDR;
246246

247-
extern PROC_HDR *ProcGlobal;
247+
extern PGDLLIMPORT PROC_HDR *ProcGlobal;
248248

249249
extern PGPROC *PreparedXactProcs;
250250

0 commit comments

Comments
 (0)