Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c9c08d

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.hin both backend and frontend environments.
1 parent62533d3 commit5c9c08d

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+
#defineFRONTEND 1
37+
3038
#include"postgres.h"
3139

3240
#include<dirent.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp