aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-11-14 21:45:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-11-14 21:45:07 +0000
commit5c9c08d2509bf897cffe8954a5ba95a41e6cb01a (patch)
treec998cfb1edda845eaf3666ac20c831bdbcd236ce /src
parent62533d34a5893db7ada08cacab379bb77a67a6e7 (diff)
downloadpostgresql-5c9c08d2509bf897cffe8954a5ba95a41e6cb01a.tar.gz
postgresql-5c9c08d2509bf897cffe8954a5ba95a41e6cb01a.zip
One more hack to see if we can get the cygwin machines building again.
This continues the saga of trying to get PGDLLIMPORT to work in pg_crc.h in both backend and frontend environments.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_resetxlog/pg_resetxlog.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c
index 314038920ab..da18910b47c 100644
--- a/src/bin/pg_resetxlog/pg_resetxlog.c
+++ b/src/bin/pg_resetxlog/pg_resetxlog.c
@@ -23,10 +23,18 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.68 2008/09/24 09:00:44 mha Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.69 2008/11/14 21:45:07 tgl Exp $
*
*-------------------------------------------------------------------------
*/
+
+/*
+ * 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>