index 7966a9e90bac1297b3f1bd7b7af637f24459154d..4e08c4b8654328657097496ad0731cdaf3e3f46b 100644 (file)
@@ -231,6 +231,13 @@ extern void AdvanceOldestClogXid(TransactionId oldest_datfrozenxid);
extern bool ForceTransactionIdLimitUpdate(void);
extern Oid GetNewObjectId(void);
+/*
+ * Some frontend programs include this header. For compilers that emit static
+ * inline functions even when they're unused, that leads to unsatisfied
+ * external references; hence hide them with #ifndef FRONTEND.
+ */
+#ifndef FRONTEND
+
/*
* For callers that just need the XID part of the next transaction ID.
*/
return XidFromFullTransactionId(ReadNextFullTransactionId());
}
-#endif /* TRAMSAM_H */
+#endif /* FRONTEND */
+
+#endif /* TRANSAM_H */