Neil Conway wrote:
> Andrew Dunstan wrote:
>
>> I have confirmed that the attached patch works on Cygwin as well as
>> Windows. Please apply.
>
>
> Applied, thanks.
>
Great that it fixes it... however, I had submitted a tidier patch that
puts the macro in the header (probably after asking Andrew to test the
first one, oops - sorry Andrew). I have tested it on win32 native.
Do you want to back out the first one and use this instead?
regards
Mark
*** pg_buffercache_pages.h.orig Thu Mar 17 10:12:20 2005
--- pg_buffercache_pages.h Thu Mar 17 13:44:45 2005
***************
*** 15,18 ****
--- 15,24 ----
extern Datum pg_buffercache_pages(PG_FUNCTION_ARGS);
+ /* A little hackery for Windows and Cygwin */
+ #if defined (WIN32) || defined (__CYGWIN__)
+ extern DLLIMPORT BufferDesc *BufferDescriptors;
+ extern DLLIMPORT volatile uint32 InterruptHoldoffCount;
+ #endif
+
#endif /* PG_BUFFERCACHE_PAGES_H */