From: Magnus Hagander <mha@edu.sollentuna.se>
Marc G. Fournier <scrappy@hub.org>
From: Magnus Hagander <mha@edu.sollentuna.se> Ok. Here is a patch to make psql work on Win32 (as a console mode application, of course). It requires getopt.c to be in src/utils - works fine with the FreeBSD version of it. Also, the file win32.mak should go into src/bin/psql.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/psql.c | modified | +40 −3 |
| src/bin/psql/win32.mak | added | +64 −0 |
| src/utils/getopt.c | added | +117 −0 |
| src/win32.mak | modified | +2 −0 |