diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-17 15:19:47 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-03-17 15:19:47 -0400 |
commit | e2a203a1903367135457f12e0032626f96ef04ca (patch) | |
tree | da9228f31f101b01e194a0dce782a8615f8d7ea9 /src/include | |
parent | 8c41cb695cc5f90eee3d2226ad09016381700ca7 (diff) | |
download | postgresql-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.h | 3 |
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); |