diff options
Diffstat (limited to 'src/include/storage/bufmgr.h')
-rw-r--r-- | src/include/storage/bufmgr.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h index afd8a847efd..86040610e77 100644 --- a/src/include/storage/bufmgr.h +++ b/src/include/storage/bufmgr.h @@ -253,6 +253,15 @@ extern void FreeAccessStrategy(BufferAccessStrategy strategy); /* inline functions */ /* + * Although this header file is nominally backend-only, certain frontend + * programs like pg_xlogdump include it. For compilers that emit static + * inline functions even when they're unused, that leads to unsatisfied + * external references; hence hide these with #ifndef FRONTEND. + */ + +#ifndef FRONTEND + +/* * BufferGetPage * Returns the page associated with a buffer. * @@ -272,4 +281,6 @@ BufferGetPage(Buffer buffer, Snapshot snapshot, Relation relation, return page; } -#endif +#endif /* FRONTEND */ + +#endif /* BUFMGR_H */ |