This isn't our usual solution for such problems, and older compilers
(not terribly old, either) don't like it.
Per buildfarm and local testing.
#include "lib/dshash.h"
-/* Defined in typcache.c */
-typedef struct SharedRecordTypmodRegistry SharedRecordTypmodRegistry;
+/* Avoid including typcache.h */
+struct SharedRecordTypmodRegistry;
/*
* A struct encapsulating some elements of a user's session. For now this
dsa_area *area; /* The session-scoped DSA area. */
/* State managed by typcache.c. */
- SharedRecordTypmodRegistry *shared_typmod_registry;
+ struct SharedRecordTypmodRegistry *shared_typmod_registry;
dshash_table *shared_record_table;
dshash_table *shared_typmod_table;
} Session;