One more hack to see if we can get the cygwin machines building again.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Nov 2008 21:45:07 +0000 (21:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Nov 2008 21:45:07 +0000 (21:45 +0000)
This continues the saga of trying to get PGDLLIMPORT to work in pg_crc.h
in both backend and frontend environments.

src/bin/pg_resetxlog/pg_resetxlog.c

index 871f2dcf52bc109ccdebaca89090813ff8707532..f495fe8fc47e6b343c979025937e148b37a312c8 100644 (file)
  *
  *-------------------------------------------------------------------------
  */
+
+/*
+ * We have to use postgres.h not postgres_fe.h here, because there's so much
+ * backend-only stuff in the XLOG include files we need.  But we need a
+ * frontend-ish environment otherwise.  Hence this ugly hack.
+ */
+#define FRONTEND 1
+
 #include "postgres.h"
 
 #include <dirent.h>