Skip to content

Commit e1b398c

Browse files
author
Neil Conway
committed
Fix build error in pg_buffercache on Win32 (native and cygwin). From
Mark Kirkwood.
1 parent 8962b61 commit e1b398c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

contrib/pg_buffercache/pg_buffercache_pages.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* pg_buffercache_pages.c
44
* display some contents of the buffer cache
55
*
6-
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.1 2005/03/12 15:36:24 neilc Exp $
6+
* $PostgreSQL: pgsql/contrib/pg_buffercache/pg_buffercache_pages.c,v 1.2 2005/03/31 00:45:26 neilc Exp $
77
*-------------------------------------------------------------------------
88
*/
99
#include "postgres.h"
@@ -17,6 +17,11 @@
1717

1818
#define NUM_BUFFERCACHE_PAGES_ELEM 6
1919

20+
#if defined(WIN32) || defined(__CYGWIN__)
21+
extern DLLIMPORT BufferDesc *BufferDescriptors;
22+
extern DLLIMPORT volatile uint32 InterruptHoldoffCount;
23+
#endif
24+
2025

2126
/*
2227
* Record structure holding the to be exposed cache data.

0 commit comments

Comments
 (0)