MSVC compile errors

Started by Andrew Dunstanover 21 years ago3 messagespatches
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

I was egtting a compile error complaining (in effect) abour the lack of
a pid_t type when attempting a compile with MSVC. The attached patch,
which move the definition up in the file win32.h before it is used,
seems to cure the problem.

I am also seeing non-fatal warnings about redefinition of SIG_ERR
SIG_DFL and SIG_IGN which I will investigate.

cheers

andrew

Attachments:

win32.patchtext/x-patch; name=win32.patchDownload+4-4
#2Andrew Dunstan
andrew@dunslane.net
In reply to: Andrew Dunstan (#1)
Re: MSVC compile errors

Andrew Dunstan wrote:

I am also seeing non-fatal warnings about redefinition of SIG_ERR
SIG_DFL and SIG_IGN which I will investigate.

The cure for this seems to be to add

#include <signal.h>

near the top of src/include/port/win32.h.

cheers

andrew

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrew Dunstan (#1)
Re: MSVC compile errors

Andrew Dunstan <andrew@dunslane.net> writes:

I was egtting a compile error complaining (in effect) abour the lack of
a pid_t type when attempting a compile with MSVC. The attached patch,
which move the definition up in the file win32.h before it is used,
seems to cure the problem.

I applied a somewhat more extensive patch that tries to put the contents
of win32.h in a saner order (function externs at the bottom). Got the
<signal.h> problem too.

regards, tom lane