From: | "Magnus Hagander" <mha(at)sollentuna(dot)net> |
---|---|
To: | <pgsql-patches(at)postgresql(dot)org> |
Subject: | temp patch for win32 readdir issue |
Date: | 2004-02-04 22:44:03 |
Message-ID: | 6BCB9D8A16AC4241919521715F4D8BCE34B139@algol.sollentuna.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Ok, so I know this is pretty ugly. But there is a bug in mingw (current
release - it's fixed in the snapshot version) with regards to readdir()
(see previous mails on win32-hackers). Basically, it doesn't set errno
correctly.
This patch will catch this error with regards to the readdir(), wrap a
change in #ifdef WIN32, and emit a warning at compile time. This is a
temporary measure until mingw releases a version that has this fixed.
Applying this will make it easier on those who want to compile
postgresql on win32, since it removes a manual step. Which is why I'm
giving it a shot posting it here even though it's ugly.
//Magnus
Attachment | Content-Type | Size |
---|---|---|
win32_readdir.patch | application/octet-stream | 457 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2004-02-04 22:56:53 | Re: pg_generate_sequence and info_schema patch (Was: SELECT |
Previous Message | Magnus Hagander | 2004-02-04 22:15:11 | Re: win32 signals, part 4 |