OK, patch applied. I changed DWORD to unsigned long.
---
Andrew Dunstan wrote:
> Here's a patch for pg_id.c that lets it compile cleanly and run on Windows.
>
> cheers
>
> andrew
>
> Index: src/bin/pg_id/pg_id.c
> ==
n" <[EMAIL PROTECTED]>
To: "Andrew Dunstan" <[EMAIL PROTECTED]>
Cc: "PG Patches" <[EMAIL PROTECTED]>
Sent: Sunday, October 05, 2003 12:17 AM
Subject: Re: [PATCHES] pg_id.c windows fix
>
> Can you tell me what Win32 compile environment can't handle
On Sun, 5 Oct 2003, Bruce Momjian wrote:
>
> Can you tell me what Win32 compile environment can't handle a sizeof()
> as a function parameter?
>
> ! GetUserName(pw->pw_name, sizeof(pw->pw_name)-1);
>
> Does casting to DWORD help?
> > ! GetUserName(pw->pw_name, &pwname_size);
It looks
Can you tell me what Win32 compile environment can't handle a sizeof()
as a function parameter?
! GetUserName(pw->pw_name, sizeof(pw->pw_name)-1);
Does casting to DWORD help?
---
Andrew Dunstan wrote:
> Here's a patc