Skip to content

Commit 5c9c08d

Browse files
committed
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.
1 parent 62533d3 commit 5c9c08d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@
2323
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
26-
* $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.68 2008/09/24 09:00:44 mha Exp $
26+
* $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.69 2008/11/14 21:45:07 tgl Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
30+
31+
/*
32+
* We have to use postgres.h not postgres_fe.h here, because there's so much
33+
* backend-only stuff in the XLOG include files we need. But we need a
34+
* frontend-ish environment otherwise. Hence this ugly hack.
35+
*/
36+
#define FRONTEND 1
37+
3038
#include "postgres.h"
3139

3240
#include <dirent.h>

0 commit comments

Comments
 (0)