diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2010-12-26 10:34:47 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2010-12-26 10:34:47 -0500 |
commit | a534728afb7341e1ddf2df16196ed501eaa378c2 (patch) | |
tree | e3bdbb141d7234bde62eb1621260fd2819e19efb /src/backend | |
parent | 85cff3ce7f360d139d87aee836d75a6202fee066 (diff) | |
download | postgresql-a534728afb7341e1ddf2df16196ed501eaa378c2.tar.gz postgresql-a534728afb7341e1ddf2df16196ed501eaa378c2.zip |
Only build in crashdump support on Windows if there's a working dbghelp.h.
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/main/main.c | 2 | ||||
-rw-r--r-- | src/backend/port/win32/Makefile | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 6065e8c661c..d3f9bcde7f0 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -85,7 +85,7 @@ main(int argc, char *argv[]) * If supported on the current platform, set up a handler to be called if * the backend/postmaster crashes with a fatal signal or exception. */ -#ifdef WIN32 +#if defined(WIN32) && defined(HAVE_MINIDUMP_TYPE) pgwin32_install_crashdump_handler(); #endif diff --git a/src/backend/port/win32/Makefile b/src/backend/port/win32/Makefile index d00c33421e7..820a3b3753e 100644 --- a/src/backend/port/win32/Makefile +++ b/src/backend/port/win32/Makefile @@ -12,6 +12,9 @@ subdir = src/backend/port/win32 top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global -OBJS = timer.o socket.o signal.o security.o mingwcompat.o crashdump.o +OBJS = timer.o socket.o signal.o security.o mingwcompat.o +ifeq ($(have_win32_dbghelp), yes) +OBJS += crashdump.o +endif include $(top_srcdir)/src/backend/common.mk |