aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-03-17 15:19:47 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-03-17 15:19:47 -0400
commite2a203a1903367135457f12e0032626f96ef04ca (patch)
treeda9228f31f101b01e194a0dce782a8615f8d7ea9 /src/include
parent8c41cb695cc5f90eee3d2226ad09016381700ca7 (diff)
downloadpostgresql-e2a203a1903367135457f12e0032626f96ef04ca.tar.gz
postgresql-e2a203a1903367135457f12e0032626f96ef04ca.zip
initdb needs pqsignal() even on Windows.
I had thought we weren't using this version of pqsignal() at all on Windows, but that's wrong --- initdb is using it (and coping with the POSIX-ish semantics of bare signal() :-(). So allow the file to be built in WIN32+FRONTEND case, and add it to the MSVC build logic.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/port.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/include/port.h b/src/include/port.h
index cde4ad56075..c816b67445d 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -463,11 +463,8 @@ extern int pg_check_dir(const char *dir);
extern int pg_mkdir_p(char *path, int omode);
/* port/pqsignal.c */
-/* On Windows, we can emulate pqsignal in the backend, but not frontend */
-#if !defined(WIN32) || !defined(FRONTEND)
typedef void (*pqsigfunc) (int signo);
extern pqsigfunc pqsignal(int signo, pqsigfunc func);
-#endif
/* port/quotes.c */
extern char *escape_single_quotes_ascii(const char *src);