Make pg_bsd_indent's .h files inclusion-order-safe.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Feb 2023 18:06:37 +0000 (13:06 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Feb 2023 18:06:37 +0000 (13:06 -0500)
As-is, they failed headerscheck.  Per buildfarm.

src/tools/pg_bsd_indent/indent.h

index d9fff8ccd6d41e06f5a78e087f384ba004ce3ea4..e9e71d667d8c460f302fa737c5cfa8948d95a524 100644 (file)
@@ -30,6 +30,8 @@ __FBSDID("$FreeBSD: head/usr.bin/indent/indent.h 303746 2016-08-04 15:27:09Z pfg
 
 #define    nitems(x)   (sizeof((x)) / sizeof((x)[0]))
 
+struct parser_state;           /* allow forward reference */
+
 void   add_typename(const char *);
 void   alloc_typenames(void);
 int    compute_code_target(void);