Skip site navigation (1) Skip section navigation (2)

Export IsUnderPostmaster for pg_stat_statements on win32

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Export IsUnderPostmaster for pg_stat_statements on win32
Date: 2009-01-05 01:50:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

I compiled pg_stat_statements on mingw, and got the following error.
PGDLLIMPORT for IsUnderPostmaster seems to be needed on win32.

Info: resolving _IsUnderPostmaster by linking to __imp__IsUnderPostmaster (auto-import)
fu000001.o:(.idata$2+0xc): undefined reference to `libpostgres_a_iname'
nmth000000.o:(.idata$4+0x0): undefined reference to `_nm__IsUnderPostmaster'

Patch attached.

Index: src/include/miscadmin.h
--- src/include/miscadmin.h	(HEAD)
+++ src/include/miscadmin.h	(fixed)
@@ -123,7 +123,7 @@
 extern pid_t PostmasterPid;
 extern bool IsPostmasterEnvironment;
-extern bool IsUnderPostmaster;
+extern PGDLLIMPORT bool IsUnderPostmaster;
 extern bool ExitOnAnyError;

ITAGAKI Takahiro
NTT Open Source Software Center


pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2009-01-05 01:51:22
Subject: Re: QuickLZ compression algorithm (Re: Inclusion in thePostgreSQL backend for toasting rows)
Previous:From: Alvaro HerreraDate: 2009-01-05 01:46:54
Subject: Re: generic reloptions improvement

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group